1 # Maintainer : Tim Hartman <tbhartman@gmail.com>
2 pkgname=openid-mediawiki-ext
5 pkgdesc="A MediaWiki Extension for using OpenID"
7 url="http://www.mediawiki.org/wiki/Extension:OpenID"
9 depends=('mediawiki' 'php-openid')
10 install=openid.install
11 source=(http://upload.wikimedia.org/ext-dist/OpenID-MW1.16-${pkgver}.tar.gz)
12 md5sums=('8e53de323bec48dd9f3e86d50e198393')
16 install -d -m0755 $pkgdir/srv/http/mediawiki/extensions || return 1
17 cp -a OpenID $pkgdir/srv/http/mediawiki/extensions || return 1
20 chmod -R 0644 $pkgdir/srv/http/mediawiki/extensions/OpenID || return 1
22 # Re-add x bit to folders
23 chmod -R 0754 $pkgdir/srv/http/mediawiki/extensions/OpenID || return 1
25 # Set it to be in web user group
26 chown -R root:http $pkgdir/srv/http/mediawiki/extensions/OpenID || return 1
28 # Link to Auth from php-openid
29 cd "${pkgdir}/srv/http/mediawiki/extensions/OpenID"
30 ln -s "../../../../usr/lib/php-openid/Auth"