mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-08-31 03:11:18 +02:00
39 lines
956 B
Plaintext
39 lines
956 B
Plaintext
# Contributor: Carlo Landmeter <clandmeter@gmail.com>
|
|
# Maintainer: Carlo Landmeter <clandmeter@gmail.com>
|
|
pkgname=php7-apcu
|
|
_pkgreal=apcu
|
|
# release 5 is php7+
|
|
pkgver=5.1.12
|
|
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
|
|
./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 "$pkgdir"/etc/php7/conf.d
|
|
echo "extension=$_pkgreal.so" > "$pkgdir"/etc/php7/conf.d/$_pkgreal.ini
|
|
}
|
|
|
|
sha512sums="f53b7840d5aecfc899e3e878f0bb9a5dc4a83628543963c20c25ce2b2a2adf14dd40d39a6a2014c139962453e0e9e5038fca7b1d0be205c0b9b2aa6e3fefb054 apcu-5.1.12.tgz"
|