aboutsummaryrefslogtreecommitdiffstats
path: root/testing/php-xcache/APKBUILD
blob: 882305fa0b9cbd905e97979d1787476fc39fbb0d (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
39
40
41
42
43
44
45
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=php-xcache
pkgver=3.0.1
pkgrel=0
pkgdesc="php opcode cacher"
url="http://xcache.lighttpd.net/"
arch="all"
license="BSD"
depends="zendframework"
depends_dev=""
makedepends="$depends_dev php-dev autoconf automake flex bison gawk"
install=""
subpackages=""
source="http://xcache.lighttpd.net/pub/Releases/$pkgver/xcache-$pkgver.tar.bz2"

_builddir="$srcdir"/xcache-$pkgver
prepare() {
	local i
	cd "$_builddir"
	for i in $source; do
		case $i in
		*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
		esac
	done
}

build() {
	cd "$_builddir"
	phpize --clean && phpize || return 1
	./configure \
		--prefix=/usr \
		--enable-xcache \
		--enable-xcache-constant \
		--enable-xcache-optimizer \
		--enable-xcache-coverager \
		|| return 1
	make -j1
}

package() {
	cd "$_builddir"
	make -j1 install INSTALL_ROOT="$pkgdir"
}

md5sums="45086010bc4f82f506c08be1c556941b  xcache-3.0.1.tar.bz2"