aboutsummaryrefslogtreecommitdiffstats
path: root/main/php-apcu/APKBUILD
blob: 65a4c769f5ec16c1b5a438af037936806c5dca1d (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
34
35
36
37
38
# Contributor: Valery Kartel <valery.kartel@gmail.com>
# Maintainer: Carlo Landmeter <clandmeter@gmail.com>
pkgname=php-apcu
_pkgreal=apcu
# release 5 is php7+
pkgver=4.0.10
_pkgver=${pkgver/_rc/RC}
pkgrel=0
pkgdesc="PHP extension APC User Cache"
url="http://pecl.php.net/package/$_pkgreal"
arch="all"
license="PHP"
depends=
pecldepends="php-dev autoconf"
makedepends="$pecldepends pcre-dev"
install=""
subpackages=""
source="http://pecl.php.net/get/$_pkgreal-$_pkgver.tgz"

_builddir="$srcdir"/$_pkgreal-$_pkgver

build() {
	cd "$_builddir"
	phpize || return 1
	./configure --prefix=/usr || return 1
	make || return 1
}

package() {
	cd "$_builddir"
	make INSTALL_ROOT="$pkgdir"/ install || return 1
	install -d "$pkgdir"/etc/php/conf.d || return 1
	echo "extension=$_pkgreal.so" > "$pkgdir"/etc/php/conf.d/$_pkgreal.ini
}

md5sums="e52d930a050066025095e2a448fd3cab  apcu-4.0.10.tgz"
sha256sums="8dee6680924107d2aaf827f9cb8ef0e8e09c47bb38712a3439eddabe3ce41b40  apcu-4.0.10.tgz"
sha512sums="8aabd51996270cff98b9e329413f9cfcaa9be33a0df8bf9ad50ac2dfd320e348aee6432b8ecd498e077c490714184a82502ea656d825a5fcab70966780064163  apcu-4.0.10.tgz"