aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndy Postnikov <apostnikov@gmail.com>2020-06-17 04:45:36 +0300
committerAndy Postnikov <apostnikov@gmail.com>2020-06-17 21:05:42 +0000
commit1541570666034a76ad3f63abb2e456263ba5ac69 (patch)
tree0037a02a13b5e73ec17d1a4ca8c74b4256f3f1ba
parent08f27d8a06783d7973e6e4045c878937b6d9f18e (diff)
downloadaports-1541570666034a76ad3f63abb2e456263ba5ac69.tar.gz
aports-1541570666034a76ad3f63abb2e456263ba5ac69.tar.bz2
aports-1541570666034a76ad3f63abb2e456263ba5ac69.tar.xz
community/php7-pecl-apcu: improve and enable tests
-rw-r--r--community/php7-pecl-apcu/APKBUILD16
1 files changed, 8 insertions, 8 deletions
diff --git a/community/php7-pecl-apcu/APKBUILD b/community/php7-pecl-apcu/APKBUILD
index 51389f4e65..52f19a110d 100644
--- a/community/php7-pecl-apcu/APKBUILD
+++ b/community/php7-pecl-apcu/APKBUILD
@@ -3,34 +3,34 @@
pkgname=php7-pecl-apcu
_pkgreal=apcu
pkgver=5.1.18
-pkgrel=1
+pkgrel=2
pkgdesc="PHP extension APC User Cache - PECL"
url="https://pecl.php.net/package/apcu"
arch="all"
license="PHP-3.01"
depends="php7-common"
-makedepends="pcre2-dev php7-dev autoconf re2c"
+makedepends="pcre2-dev php7-dev"
+checkdepends="php7-pcntl php7-session"
source="https://pecl.php.net/get/$_pkgreal-$pkgver.tgz"
builddir="$srcdir/$_pkgreal-$pkgver"
provides="php7-apcu=$pkgver-r$pkgrel" # for backward compatibility
replaces="php7-apcu" # for backward compatibility
build() {
- cd "$builddir"
-
phpize7
./configure --prefix=/usr --with-php-config=php-config7
make
}
check() {
- cd "$builddir"
- make NO_INTERACTION=1 REPORT_EXIT_STATUS=1 test
+ 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/$_pkgreal.so"
}
package() {
- cd "$builddir"
-
make INSTALL_ROOT="$pkgdir"/ install
install -D -m644 apc.php "$pkgdir"/usr/share/php7/apcu/apc.php