1 # Maintainer: Paul Gideon Dann <pdgiddie_AT_gmail_DOT_com>
3 pkgname=('mindtouch') # Workaround for AUR
4 true && pkgname=('mindtouch' 'mindtouch-setup')
7 pkgdesc="An enterprise wiki and collaborative portal"
10 url="http://sourceforge.net/projects/dekiwiki"
15 _releasename="Pipestone"
16 _basename="MindTouch_Core_Source"
18 http://sourceforge.net/projects/dekiwiki/files/MindTouch%20Core%20Source/${_releasename}%20${pkgver}/${_basename}_${pkgver}.tar.gz
20 curl_followlocation.patch
26 mindtouch-install-config
29 md5sums=('8d67b9b5f177795ce87cf07c47c1b816'
30 '409025a7c3084779c2562514f6150ab3'
31 '6ebc32a12a532100cc6cf62991f9f6aa'
32 'f9708821146f798d5f9e87316f5b6572'
33 'e121a3c243bc2a1f0586ac8fa7370fae'
34 'efebfbb5aa53106432a2c3ad5b80a94d'
35 'b1d88aad11afee0cd4f474898cfee8f4'
36 '12b625256ca760c42517ca3792d6e1f0'
37 '2e81b936ee8e2b741151d92e4bdc4f11'
38 '471b430b4fe38806c51b7ed797b30558')
41 cd "$srcdir/${_basename}_${pkgver}"
42 for patch in $srcdir/*.patch; do
43 msg2 $(basename $patch)
49 depends=(imagemagick mono php-gd poppler html2text wv)
50 optdepends=('princexml: to export documents to PDF')
51 install=(mindtouch.install)
54 cd $srcdir/${_basename}_${pkgver}
55 local webapp=$pkgdir/usr/share/webapps/mindtouch
56 install -d $pkgdir/usr/share/webapps
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
80 install -d $pkgdir/usr/bin
81 install $srcdir/mindtouch-update-db $pkgdir/usr/bin
84 install -d $pkgdir/usr/share/mindtouch
85 install -m 644 $srcdir/nginx-rewrites $pkgdir/usr/share/mindtouch
88 package_mindtouch-setup() {
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: