aboutsummaryrefslogtreecommitdiffstats
path: root/community/php7-apcu/APKBUILD
blob: 34e3dc4a3067044cf4ed2c96a39ecc67b2ed7280 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
# Contributor: Carlo Landmeter <clandmeter@gmail.com>
# Maintainer: Carlo Landmeter <clandmeter@gmail.com>
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"