# Maintainer: Natanael Copa pkgname=php-xcache pkgver=3.0.3 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 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 \ --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="8e9d59785725747f9f099af2bd54ddd2 xcache-3.0.3.tar.bz2 8fd9ce537ada9463c4b0c042243158c0 xcache.ini" sha256sums="2ff6809e66d9c14b70570b9b602ba8ea1daa87bc4a67f59fa769b1d0a6981edc xcache-3.0.3.tar.bz2 c8c843335028b1da1965ff71b73b42fc4bc45be08bf9ec3f71aff5744a428176 xcache.ini" sha512sums="60e48eb6c9c729cec90ae7fc31459c725a5f7c75720015e5659f53e592fa9a67d802bce4c52477f6798ed6cb27c4fde34b76569ec17893b2962b8e3d2aa0e33d xcache-3.0.3.tar.bz2 dc693745177ab1dfcd4e0ae1193ebcedf7d97f4ea222525fa52955be5dd68a50db27cce0c6ef069f9972e79d2cb0f88d6fa27e6e433781312c370e791a64c1cc xcache.ini"