updated on Sun Jan 15 04:04:02 UTC 2012
[aur-mirror.git] / php-openid / PKGBUILD
blobaf68afb3598715d7bf76fa31a400729e25c0abd7
1 # Maintainer: Tim Hartman <tbhartman at gmail>
2 pkgname=php-openid
3 pkgver=2.2.2
4 pkgrel=1
5 pkgdesc="OpenID support for PHP"
6 arch=(any)
7 url="http://www.openidenabled.com/"
8 license=("APACHE")
9 depends=('php>=4.3.0' 'php-curl')
10 optdepends=('php-gmp: faster than PHP Bcmath extension'
11             'mysql: data storage in MySQL'
12             'postgresql: data storage in PostgreSQL'
13             'sqlite3: data storage in SQLite'
14             'php-pear: data storaage in any of the above databases')
15 source=("${pkgname}-${pkgver}.tar.gz::https://github.com/openid/$pkgname/tarball/$pkgver")
16 install="${pkgname}.install"
17 md5sums=('f14bfe22b553936a5648dee1ca94455a')
19 package() {
20   cd "${srcdir}/"
21   mv "openid-${pkgname}-"* "${pkgname}-${pkgver}"
22   cd "${pkgname}-${pkgver}"
23   
24   mkdir -p "${pkgdir}/usr/lib/${pkgname}/"
25   cp -r --preserve=all ./* "${pkgdir}/usr/lib/${pkgname}/"
26   chown -R root:http "${pkgdir}/usr/lib/${pkgname}/Auth"
27   chmod -R g+x "${pkgdir}/usr/lib/${pkgname}/Auth"
29   mkdir -p "${pkgdir}/srv/"
30   cd "${pkgdir}/srv"
31   ln -s "../usr/lib/${pkgname}/Auth"  
32