# Contributor: Carlo Landmeter # Maintainer: Carlo Landmeter pkgname=php7-apcu _pkgreal=apcu # release 5 is php7+ pkgver=5.1.9 pkgrel=0 pkgdesc="PHP extension APC User Cache" url="http://pecl.php.net/package/$_pkgreal" arch="all" license="PHP" depends="" makedepends="pcre-dev php7-dev autoconf" source="http://pecl.php.net/get/$_pkgreal-$pkgver.tgz" builddir="$srcdir/$_pkgreal-$pkgver" build() { cd "$builddir" phpize7 || return 1 ./configure --prefix=/usr --with-php-config=php-config7 || return 1 make || return 1 } package() { cd "$builddir" make INSTALL_ROOT="$pkgdir"/ install || return 1 install -d "$pkgdir"/etc/php7/conf.d || return 1 echo "extension=$_pkgreal.so" > "$pkgdir"/etc/php7/conf.d/$_pkgreal.ini } sha512sums="3e9b29a293b5bfb29283dd650907bfb9f31a1cb99ef908021d3869c3e3ae4051a2c45aab27275e90b0a2fa94c35cc9e170637dc539184d955f3f13dc09cba060 apcu-5.1.9.tgz"