aboutsummaryrefslogtreecommitdiffstats
path: root/main/php-xcache/APKBUILD
blob: a285a128cba3fbf7ba53814051171315eabc0c25 (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
46
47
48
49
50
51
52
53
54
55
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=php-xcache
pkgver=3.2.0
pkgrel=1
pkgdesc="php opcode cacher"
url="http://xcache.lighttpd.net/"
arch="all"
license="BSD"
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.gz
        xcache.ini"

_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 \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--enable-xcache \
		--enable-xcache-constant \
		--enable-xcache-optimizer \
		--enable-xcache-coverager \
		|| return 1
	make -j1 || return 1
}

package() {
	cd "$_builddir"
	make -j1 install INSTALL_ROOT="$pkgdir" || return 1
	install -Dm644 "$srcdir"/xcache.ini \
		"$pkgdir"/etc/php/conf.d/xcache.ini || return 1
}

md5sums="8b0a6f27de630c4714ca261480f34cda  xcache-3.2.0.tar.gz
8fd9ce537ada9463c4b0c042243158c0  xcache.ini"
sha256sums="9d7bea91dabb3e0c859195a85562f24c77a5967722753018966beb7a421c6bc0  xcache-3.2.0.tar.gz
c8c843335028b1da1965ff71b73b42fc4bc45be08bf9ec3f71aff5744a428176  xcache.ini"
sha512sums="6ba2d857d5fa40deac7ab1dffc3e7aed6e04eff8b2397fdf73f7251c47804958fc44ab5e3cbdf02c02d55b4139dd9747d78e231e4652ba19d093d80a64242b1d  xcache-3.2.0.tar.gz
dc693745177ab1dfcd4e0ae1193ebcedf7d97f4ea222525fa52955be5dd68a50db27cce0c6ef069f9972e79d2cb0f88d6fa27e6e433781312c370e791a64c1cc  xcache.ini"