PKGBUILDs/community/mediawiki/PKGBUILD

27 lines
886 B
Bash
Raw Normal View History

2009-10-10 02:15:33 +00:00
# $Id: PKGBUILD 1570 2009-08-25 21:33:40Z spupykin $
# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>
# Contributor: Sergej Pupykin <pupykin.s+arch@gmail.com>
pkgname=mediawiki
pkgver=1.15.1
pkgrel=2
pkgdesc="MediaWiki engine"
arch=('any')
url="http://www.mediawiki.org/wiki/MediaWiki"
license=("GPL")
depends=(php)
optdepends=('texvc: for math rendering')
backup=(srv/http/mediawiki/.htaccess)
install=mediawiki.install
source=(http://download.wikimedia.org/mediawiki/1.15/mediawiki-$pkgver.tar.gz)
md5sums=('834cef60ef3fd47162420fa25abf2dff')
build() {
cd $startdir/src
install -d -m0755 $startdir/pkg/srv/http && \
mv $pkgname-$pkgver $startdir/pkg/srv/http/mediawiki && \
ln -s /usr/bin/texvc $startdir/pkg/srv/http/mediawiki/math/texvc && \
chmod 0777 $startdir/pkg/srv/http/mediawiki/images && \
echo "deny from all" >> $pkgdir/srv/http/mediawiki/.htaccess
}