diff options
author | Andy Postnikov <apostnikov@gmail.com> | 2018-10-20 22:34:33 +0300 |
---|---|---|
committer | Andy Postnikov <apostnikov@gmail.com> | 2018-10-23 17:08:59 +0300 |
commit | ba1f69ffaeece9b1e3bd1d0e112a433c1f2d33c3 (patch) | |
tree | a546b62be98d1fdbefaa25251aa27064ba2d0912 /community/php7-pecl-apcu | |
parent | fd3e7ba11bc038a83c0e1a40297eb26dcd635826 (diff) | |
download | aports-ba1f69ffaeece9b1e3bd1d0e112a433c1f2d33c3.tar.bz2 aports-ba1f69ffaeece9b1e3bd1d0e112a433c1f2d33c3.tar.xz |
community/php7-pecl-apcu: renamed from php7-apcu, modernize
Diffstat (limited to 'community/php7-pecl-apcu')
-rw-r--r-- | community/php7-pecl-apcu/APKBUILD | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/community/php7-pecl-apcu/APKBUILD b/community/php7-pecl-apcu/APKBUILD new file mode 100644 index 0000000000..47165013d5 --- /dev/null +++ b/community/php7-pecl-apcu/APKBUILD @@ -0,0 +1,42 @@ +# Contributor: Carlo Landmeter <clandmeter@gmail.com> +# Maintainer: Carlo Landmeter <clandmeter@gmail.com> +pkgname=php7-pecl-apcu +_pkgreal=apcu +# release 5 is php7+ +pkgver=5.1.12 +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="pcre-dev php7-dev autoconf re2c" +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 +} + +package() { + cd "$builddir" + + make INSTALL_ROOT="$pkgdir"/ install + install -D -m644 apc.php "$pkgdir"/usr/share/php7/apcu/apc.php + + install -d "$pkgdir"/etc/php7/conf.d + echo "extension=$_pkgreal.so" > "$pkgdir"/etc/php7/conf.d/$_pkgreal.ini +} + +sha512sums="f53b7840d5aecfc899e3e878f0bb9a5dc4a83628543963c20c25ce2b2a2adf14dd40d39a6a2014c139962453e0e9e5038fca7b1d0be205c0b9b2aa6e3fefb054 apcu-5.1.12.tgz" |