mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2026-01-18 15:12:02 +01:00
44 lines
1.4 KiB
Plaintext
44 lines
1.4 KiB
Plaintext
# Contributor: Andy Postnikov <apostnikov@gmail.com>
|
|
# Maintainer: Andy Postnikov <apostnikov@gmail.com>
|
|
|
|
pkgname=php7-pecl-igbinary
|
|
_pkgreal=igbinary
|
|
pkgver=3.0.1
|
|
pkgrel=0
|
|
pkgdesc="Igbinary is a drop in replacement for the standard php serializer"
|
|
url="https://pecl.php.net/package/igbinary"
|
|
arch="all"
|
|
license="BSD-3-Clause"
|
|
provides="php7-igbinary=$pkgver-r$pkgrel" # for backward compatibility
|
|
replaces="php7-igbinary" # for backward compatibility
|
|
depends="php7-common"
|
|
makedepends="autoconf php7-dev php7-json php7-pecl-apcu re2c"
|
|
source="$pkgname-$pkgver.tgz::https://pecl.php.net/get/$_pkgreal-$pkgver.tgz"
|
|
builddir="$srcdir/$_pkgreal-$pkgver"
|
|
|
|
build() {
|
|
cd "$builddir"
|
|
phpize7
|
|
./configure \
|
|
--prefix=/usr \
|
|
--with-php-config=/usr/bin/php-config7
|
|
make
|
|
}
|
|
|
|
check() {
|
|
cd "$builddir"
|
|
# Tests require json extension which is not bundled
|
|
sed -i 's#PHP_TEST_SHARED_EXTENSIONS = `#PHP_TEST_SHARED_EXTENSIONS = -d extension=/usr/lib/php7/modules/json.so `#' Makefile
|
|
make NO_INTERACTION=1 REPORT_EXIT_STATUS=1 test
|
|
}
|
|
|
|
package() {
|
|
cd "$builddir"
|
|
make INSTALL_ROOT="$pkgdir" install
|
|
install -d "$pkgdir"/etc/php7/conf.d
|
|
echo "extension=$_pkgreal.so" > \
|
|
"$pkgdir"/etc/php7/conf.d/10_$_pkgreal.ini
|
|
}
|
|
|
|
sha512sums="2a1fbc3fe98e2ed84093c01e615df48c0de5ff85bb96b0df43659facd8680512545371a482c4e7f8d2f14e91eb455c9fc512245d5ba8647d912ba69b49512d37 php7-pecl-igbinary-3.0.1.tgz"
|