summaryrefslogtreecommitdiffstats
path: root/main/php-xcache/APKBUILD
blob: f54cc42a34b0187f248d9bad19787d6e9e368160 (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
56
57
58
59
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=php-xcache
verbase=3.1.0
pkgver=3.1.0_svn20131002
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://dev.alpinelinux.org/archive/$pkgname/$pkgname-$pkgver.tar.gz
        xcache.ini"
disturl="dev.alpinelinux.org:/archive/$pkgname/"
svnurl="svn://svn.lighttpd.net/xcache/trunk"

_builddir="$srcdir"/$pkgname-$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="818e5106068ec6d77d7ae1316ee932af  php-xcache-3.1.0_svn20131002.tar.gz
8fd9ce537ada9463c4b0c042243158c0  xcache.ini"
sha256sums="54f543ee16d892b18d5e9435eb2aed75219c970e704d2d4bece1beda84053a2d  php-xcache-3.1.0_svn20131002.tar.gz
c8c843335028b1da1965ff71b73b42fc4bc45be08bf9ec3f71aff5744a428176  xcache.ini"
sha512sums="b172f48b710d7db7929139ef290eaab45afa5533fea6a9d9465b8636431b4b4cb351a08e210ab9a568c9f99bea2f243244c366fe2d56b02e97ea3c66d1a9da65  php-xcache-3.1.0_svn20131002.tar.gz
dc693745177ab1dfcd4e0ae1193ebcedf7d97f4ea222525fa52955be5dd68a50db27cce0c6ef069f9972e79d2cb0f88d6fa27e6e433781312c370e791a64c1cc  xcache.ini"