blob: 693185d0e854af8e3beb70a0c4d7cb7e89f31c15 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
|
_phpbase=72
_suffix=
pkgname="php${_phpbase}-igbinary"
_pkgname=igbinary
pkgver=3.2.15
pkgrel=1
pkgdesc="php${_phpbase} extension igbinary"
url="http://pecl.php.net/package/igbinary"
arch=('x86_64')
license=('PHP')
makedepends=("php${_phpbase}${_suffix}")
depends=("php${_phpbase}${_suffix}")
backup=("etc/php${_phpbase}/conf.d/${_pkgname}.ini")
source=("http://pecl.php.net/get/${_pkgname}-${pkgver}.tgz")
md5sums=('de81e2f54bfbe741a7f2453bccf970e9')
build() {
cd "$srcdir/$_pkgname-$pkgver"
phpize${_phpbase}
./configure --prefix=/usr CFLAGS="-O2 -g" --enable-igbinary --with-php-config=php-config${_phpbase}
make
}
check() {
cd "$srcdir/$_pkgname-$pkgver"
NO_INTERACTION=1 make test
}
package() {
cd "$srcdir/igbinary-$pkgver"
make INSTALL_ROOT="$pkgdir" install
install -D -m0644 \
"${srcdir}/${_pkgname}-${pkgver}/${_pkgname}.php.ini" \
"${pkgdir}/etc/php${_phpbase}/conf.d/${_pkgname}.ini"
install -D -m0644 \
"${srcdir}/${_pkgname}-${pkgver}/COPYING" \
"${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}
|