updated on Thu Jan 12 04:00:44 UTC 2012
[aur-mirror.git] / mindtouch / PKGBUILD
blob42d526a6e708c8c4d93ac1423c4263d8f584ffbe
1 # Maintainer: Paul Gideon Dann <pdgiddie_AT_gmail_DOT_com>
3 pkgname=('mindtouch')  # Workaround for AUR
4 true && pkgname=('mindtouch' 'mindtouch-setup')
5 pkgver=10.1.0
6 pkgrel=1
7 pkgdesc="An enterprise wiki and collaborative portal"
9 arch=('any')
10 url="http://sourceforge.net/projects/dekiwiki"
11 license=('GPL')
12 makedepends=()
13 options=(!strip)
15 _releasename="Pipestone"
16 _basename="MindTouch_Core_Source"
17 source=(
18   http://sourceforge.net/projects/dekiwiki/files/MindTouch%20Core%20Source/${_releasename}%20${pkgver}/${_basename}_${pkgver}.tar.gz
19   path_dirs.patch
20   curl_followlocation.patch
21   config.patch
22   filters.patch
23   init-script
24   logrotate
25   mindtouch-update-db
26   mindtouch-install-config
27   nginx-rewrites
29 md5sums=('8d67b9b5f177795ce87cf07c47c1b816'
30          '409025a7c3084779c2562514f6150ab3'
31          '6ebc32a12a532100cc6cf62991f9f6aa'
32          'f9708821146f798d5f9e87316f5b6572'
33          'e121a3c243bc2a1f0586ac8fa7370fae'
34          'efebfbb5aa53106432a2c3ad5b80a94d'
35          'b1d88aad11afee0cd4f474898cfee8f4'
36          '12b625256ca760c42517ca3792d6e1f0'
37          '2e81b936ee8e2b741151d92e4bdc4f11'
38          '471b430b4fe38806c51b7ed797b30558')
40 build() {
41   cd "$srcdir/${_basename}_${pkgver}"
42   for patch in $srcdir/*.patch; do
43     msg2 $(basename $patch)
44     patch -Np1 -i $patch
45   done
48 package_mindtouch() {
49   depends=(imagemagick mono php-gd poppler html2text wv)
50   optdepends=('princexml: to export documents to PDF')
51   install=(mindtouch.install)
53   # PHP Frontend
54   cd $srcdir/${_basename}_${pkgver}
55   local webapp=$pkgdir/usr/share/webapps/mindtouch
56   install -d $pkgdir/usr/share/webapps
57   cp -R web $webapp
58   rm -rf $webapp/config
59   install -d $pkgdir/etc/webapps/mindtouch
60   ln -s /etc/webapps/mindtouch/LocalSettings.php $webapp
62   # Arch-specific support files
63   install -D $srcdir/init-script $pkgdir/etc/rc.d/mindtouch
64   install -D -m 644 $srcdir/logrotate $pkgdir/etc/logrotate.d/mindtouch
66   # Workaround to allow use of MySQL UNIX socket
67   ln -s /usr/lib/mono/4.0/Mono.Posix.dll $webapp/bin
69   # Set up storage directories
70   install -d $pkgdir/var/lib/mindtouch/attachments
71   ln -s /var/lib/mindtouch/attachments $webapp
73   install -d $pkgdir/var/lib/mindtouch/cache
74   ln -s /var/lib/mindtouch/cache $webapp/bin
76   mv $webapp/bin/_x002F_deki $pkgdir/var/lib/mindtouch/licenses
77   ln -s /var/lib/mindtouch/licenses $webapp/bin/_x002F_deki
79   # Upgrade script
80   install -d $pkgdir/usr/bin
81   install $srcdir/mindtouch-update-db $pkgdir/usr/bin
83   # Nginx rewrite rules
84   install -d $pkgdir/usr/share/mindtouch
85   install -m 644 $srcdir/nginx-rewrites $pkgdir/usr/share/mindtouch
88 package_mindtouch-setup() {
89   depends=(mindtouch)
90   install=(mindtouch-setup.install)
92   cd $srcdir/${_basename}_${pkgver}
93   install -d $pkgdir/usr/share/webapps/mindtouch
94   cp -R web/config $pkgdir/usr/share/webapps/mindtouch/config
96   install -d $pkgdir/usr/bin
97   install $srcdir/mindtouch-install-config $pkgdir/usr/bin
100 # vim:set ts=2 sw=2 et: