updated on Thu Jan 19 20:01:47 UTC 2012
[aur-mirror.git] / php-intarray / PKGBUILD
blob25aae581b11b6e52a63e74ea7e922bdef090710c
1 # Maintainer: Patrick Palka <patrick@parcs.ath.cx>
2 # Development: http://closure.ath.cx/aur-dev
4 _name=intarray
5 pkgname="php-$_name"
6 pkgver=1.0.0
7 pkgrel=2
8 pkgdesc="Efficient integral arrays for PHP"
9 arch=('i686' 'x86_64')
10 url="http://opensource.dynamoid.com/"
11 license=('unknown')
12 depends=('php')
13 _ininame="$_name.ini"
14 _inifile="etc/php/conf.d/$_ininame"
15 backup=("$_inifile")
16 _filename="$_name-$pkgver"
17 source=("http://opensource.dynamoid.com/$_filename.tar.gz")
18 md5sums=('07955eb5e89ff0eadd41d988d1fb7d29')
19 _builddir="$srcdir/$_filename"
21 build() {
22     cd "$_builddir"
23     phpize
24     ./configure --prefix=/usr --enable-intarray
25     make
26     #make test
29 package() {
30     cd "$_builddir"
31     make INSTALL_ROOT="$pkgdir" install
32     echo ";extension=$_name.so" > "$_ininame"
33     install -vDm644 "$_ininame" "$pkgdir/$_inifile"
34     install -vDm644 COPYING "$pkgdir/usr/share/licenses/$pkgname/COPYING"