diff options
Diffstat (limited to 'testing/php81-pecl-igbinary/APKBUILD')
-rw-r--r-- | testing/php81-pecl-igbinary/APKBUILD | 23 |
1 files changed, 14 insertions, 9 deletions
diff --git a/testing/php81-pecl-igbinary/APKBUILD b/testing/php81-pecl-igbinary/APKBUILD index 7078b8509b9..5d2f77c8e6b 100644 --- a/testing/php81-pecl-igbinary/APKBUILD +++ b/testing/php81-pecl-igbinary/APKBUILD @@ -3,26 +3,30 @@ pkgname=php81-pecl-igbinary _extname=igbinary -pkgver=3.2.6 +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" -depends="php81-common" -makedepends="php81-dev php81-pecl-apcu" -checkdepends="php81-session" # sessions needs work https://github.com/igbinary/igbinary/issues/116 +_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() { - phpize81 - ./configure --prefix=/usr --with-php-config=php-config81 + phpize$_phpv + ./configure --prefix=/usr --with-php-config=php-config$_phpv make } check() { - local _modules="/usr/lib/php81/modules" + 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 \ @@ -30,15 +34,16 @@ check() { -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/php81/conf.d + local _confdir="$pkgdir"/etc/$_php/conf.d install -d $_confdir echo "extension=$_extname" > $_confdir/10_$_extname.ini } sha512sums=" -bb1a87f46b0ba2396a3d21b8cc2165498243a86182dc5814d85053bcac14fb099041ec9a67be975eb636e9fae411d2f2695848f0739ddb385c060d56c2f73f4a php-pecl-igbinary-3.2.6.tgz +1901765d302624ec0e8356fde6feabb8406122357e8ba178af6e9863e78a30f779c711785b981b8871d6c59f17bccfafe1d257a05a449935013ad8b62f7121c5 php-pecl-igbinary-3.2.15.tgz " |