diff options
Diffstat (limited to 'testing/php81-pecl-igbinary/APKBUILD')
-rw-r--r-- | testing/php81-pecl-igbinary/APKBUILD | 49 |
1 files changed, 49 insertions, 0 deletions
diff --git a/testing/php81-pecl-igbinary/APKBUILD b/testing/php81-pecl-igbinary/APKBUILD new file mode 100644 index 00000000000..5d2f77c8e6b --- /dev/null +++ b/testing/php81-pecl-igbinary/APKBUILD @@ -0,0 +1,49 @@ +# Contributor: Andy Postnikov <apostnikov@gmail.com> +# Maintainer: Andy Postnikov <apostnikov@gmail.com> + +pkgname=php81-pecl-igbinary +_extname=igbinary +pkgver=3.2.15 +pkgrel=0 +pkgdesc="Igbinary is a drop in replacement for the standard PHP 8.1 serializer - PECL" +url="https://pecl.php.net/package/igbinary" +arch="all" +license="BSD-3-Clause" +_phpv=81 +_php=php$_phpv +depends="$_php-common" +makedepends="$_php-dev $_php-pecl-apcu" +checkdepends="$_php-session" # sessions needs work https://github.com/igbinary/igbinary/issues/116 +source="php-pecl-$_extname-$pkgver.tgz::https://pecl.php.net/get/$_extname-$pkgver.tgz" +builddir="$srcdir/$_extname-$pkgver" + +install_if="php-$_extname php$_phpv" + +build() { + phpize$_phpv + ./configure --prefix=/usr --with-php-config=php-config$_phpv + make +} + +check() { + local _modules="/usr/lib/$_php/modules" + # Tests require extra extensions which are not bundled + make NO_INTERACTION=1 REPORT_EXIT_STATUS=1 test \ + TESTS=--show-diff \ + PHP_TEST_SHARED_EXTENSIONS=" \ + -d extension=$_modules/apcu.so \ + -d extension=$_modules/session.so \ + -d extension=modules/$_extname.so" + $_php -d extension="$builddir"/modules/$_extname.so --ri $_extname +} + +package() { + make INSTALL_ROOT="$pkgdir" install + local _confdir="$pkgdir"/etc/$_php/conf.d + install -d $_confdir + echo "extension=$_extname" > $_confdir/10_$_extname.ini +} + +sha512sums=" +1901765d302624ec0e8356fde6feabb8406122357e8ba178af6e9863e78a30f779c711785b981b8871d6c59f17bccfafe1d257a05a449935013ad8b62f7121c5 php-pecl-igbinary-3.2.15.tgz +" |