summaryrefslogtreecommitdiffstats
path: root/main/php-apcu/APKBUILD
blob: 69319433c3e0a4e60a856ab8df18213bd874c7bf (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: Carlo Landmeter <clandmeter@gmail.com>
# Maintainer: Carlo Landmeter <clandmeter@gmail.com>
pkgname=php-apcu
pkgver=4.0.3
pkgrel=0
pkgdesc="APC User Cache"
url="http://pecl.php.net/package/APCu"
arch="all"
license="PHP"
depends="php"
makedepends="php-dev autoconf pcre-dev"
subpackages=""
source="http://pecl.php.net/get/APCu-${pkgver}.tgz
apcu.ini"

build() {
	cd "$srcdir/apcu-${pkgver}"
	phpize || return 1
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--with-php-config=/usr/bin/php-config \
		|| return 1
		make || return 1
}

package() {
	cd "$srcdir/apcu-${pkgver}"
	make INSTALL_ROOT=$pkgdir install || return 1
	install -D -m644 "$srcdir"/apcu.ini "$pkgdir"/etc/php/conf.d/apcu.ini
}

md5sums="4db3d1ed48c447d9adebec13a8846d48  APCu-4.0.3.tgz
63cdaa57c6c9a68ce51c0862bc1b74a0  apcu.ini"
sha256sums="ee1b4a49e888aca34acc20609be3425f8eb0b2ea060f3594d88bbb7f1464c48b  APCu-4.0.3.tgz
923e8d58d32fbb9bf6b4835948f6c88daa3c58d462ecec574eedf5a075903f14  apcu.ini"
sha512sums="ba6d0aa146d808186bd68c9b9bb3df3db3c93c4f051d06bb9bf6896dd44146d25b05f746a21ec110517b0ab7b3fb8b8c01d44ef63f9eb7b86090ed3479b3855a  APCu-4.0.3.tgz
de01049d781a48b2a05b2a9bf0cc947ddf2cde8bc46885f3b761d82c82dc03afaf1e6a167aa9716e3b2e8e90992b4c99618da32a1f11e153960803cd7668d177  apcu.ini"