1
0
Fork 0
mirror of https://gitlab.alpinelinux.org/alpine/aports.git synced 2025-07-23 03:05:48 +03:00
aports/community/php7-pecl-apcu/APKBUILD

42 lines
1.3 KiB
Text

# Contributor: Carlo Landmeter <clandmeter@alpinelinux.org>
# Maintainer: Carlo Landmeter <clandmeter@alpinelinux.org>
pkgname=php7-pecl-apcu
_extname=apcu
pkgver=5.1.20
pkgrel=0
pkgdesc="PHP 7 extension APC User Cache - PECL"
url="https://pecl.php.net/package/apcu"
arch="all"
license="PHP-3.01"
depends="php7-common"
makedepends="php7-dev"
checkdepends="php7-pcntl php7-session"
source="php-pecl-$_extname-$pkgver.tgz::https://pecl.php.net/get/$_extname-$pkgver.tgz"
builddir="$srcdir/$_extname-$pkgver"
provides="php7-apcu=$pkgver-r$pkgrel" # for backward compatibility
replaces="php7-apcu" # for backward compatibility
build() {
phpize7
./configure --prefix=/usr --with-php-config=php-config7
make
}
check() {
local _modules="/usr/lib/php7/modules"
make NO_INTERACTION=1 REPORT_EXIT_STATUS=1 test \
PHP_TEST_SHARED_EXTENSIONS=" \
-d extension=$_modules/pcntl.so \
-d extension=modules/$_extname.so" TESTS=--show-diff
}
package() {
make INSTALL_ROOT="$pkgdir"/ install
install -D -m644 apc.php "$pkgdir"/usr/share/php7/apcu/apc.php
local _confdir="$pkgdir"/etc/php7/conf.d
install -d $_confdir
echo "extension=$_extname" > $_confdir/$_extname.ini
}
sha512sums="3e10b7e5dc7481b1250610ef83954875f427b9114d6b232bad9064fc33d8c8906bcc317f94a6cfc9f76c720fa06a44270d259cf2ceef6c1ec9dcadc49254ee1b php-pecl-apcu-5.1.20.tgz"