2013-04-19 13:38:15 +00:00

46 lines
950 B
Plaintext

# 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"