1 # Maintainer : Daniel Neve the.mephit@googlemail.com
2 pkgname=geshicodetag-mediawiki-ext
5 pkgdesc="Syntax highlighting extension for MediaWiki"
7 url="http://www.mediawiki.org/wiki/Extension:GeSHiCodeTag"
10 md5sums=('06fa38d66bde39644e73f649ebc3f1aa'
11 '183de275099154a7a78aa81507ac5c84')
12 install=geshicodetag.install
13 source=(GeshiCodeTag.php
14 http://downloads.sourceforge.net/project/geshi/geshi/GeSHi%201.0.8.8/geshi-1.0.8.8.tar.gz)
18 install -D -m0644 $srcdir/GeshiCodeTag.php $pkgdir/srv/http/mediawiki/extensions/geshicodetag/GeshiCodeTag.php || return 1
20 # They are not required for geshi to function
21 # and can pose a security risk in live sites so remove them
22 # to be on the safe side
23 rm -rf $srcdir/geshi/contrib || return 1
24 rm -rf $srcdir/geshi/docs || return 1
26 mv -f $srcdir/geshi $pkgdir/srv/http/mediawiki/extensions/geshicodetag || return 1
27 chmod -R 0644 $pkgdir/srv/http/mediawiki/extensions/geshicodetag || return 1
28 chmod 0744 $pkgdir/srv/http/mediawiki/extensions/geshicodetag || return 1
29 chmod 0744 $pkgdir/srv/http/mediawiki/extensions/geshicodetag/geshi || return 1
30 chmod 0744 $pkgdir/srv/http/mediawiki/extensions/geshicodetag/geshi/geshi || return 1
31 chown -R http: $pkgdir/srv/http/mediawiki/extensions/geshicodetag || return 1