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

build() {
	cd "$srcdir/APC-${pkgver}"
	phpize || return 1
	./configure --enable-apc \
		--disable-apc-mmap \
		--with-php-config=/usr/bin/php-config
		make || return 1
}

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

md5sums="c9e47002e3a67ebde3a6f81437c7b6e0  APC-3.1.13.tgz
1be423cbc197a302abd50cfd5834258b  apc.ini"