aports/testing/php81-pecl-immutable_cache/APKBUILD
Andy Postnikov 71dd6fb2fb testing/php81: enable on loongarch64
The version is old but has 30% usage and will be maintained one more year

reverts 514075c652
2024-10-05 13:02:40 +00:00

39 lines
1.1 KiB
Text

# Contributor: Andy Postnikov <apostnikov@gmail.com>
# Maintainer: Andy Postnikov <apostnikov@gmail.com>
pkgname=php81-pecl-immutable_cache
_extname=immutable_cache
pkgver=6.1.0
pkgrel=0
pkgdesc="PHP 8.1 extension shared memory cache of immutable values - PECL"
url="https://pecl.php.net/package/immutable_cache"
arch="all"
license="PHP-3.01"
_phpv=81
_php=php$_phpv
depends="$_php-common"
makedepends="$_php-dev"
source="php-pecl-$_extname-$pkgver.tgz::https://pecl.php.net/get/$_extname-$pkgver.tgz"
builddir="$srcdir"/$_extname-$pkgver
build() {
phpize$_phpv
./configure --prefix=/usr --with-php-config=php-config$_phpv
make
}
check() {
make NO_INTERACTION=1 REPORT_EXIT_STATUS=1 test TESTS=--show-diff
$_php -dextension=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/$_extname.ini
}
sha512sums="
7e3c8cc0bd5f7bbb94adf676d598cc0258d2f105cb56aeb355cb94c955d10d74520f6444f8123d9a7c579663e6e3510f0260b3450fa83d283a30972cce119aff php-pecl-immutable_cache-6.1.0.tgz
"