# Maintainer: Felix Yan # Contributor: Pierre Schmitz pkgname=php56-xcache pkgver=3.2.0 pkgrel=1 arch=('i686' 'x86_64') pkgdesc='A PHP 5.6 opcode cacher' url='http://xcache.lighttpd.net/' depends=('php56') license=('custom') source=("http://xcache.lighttpd.net/pub/Releases/${pkgver}/xcache-${pkgver}.tar.bz2" 'xcache.ini') backup=('etc/php56/conf.d/xcache.ini') md5sums=('3655bd20483dc23d24f87f9dc924a62e' '8fd9ce537ada9463c4b0c042243158c0') build() { cd $srcdir/xcache-$pkgver phpize56 ./configure --prefix=/usr --sysconfdir=/etc/php56 --with-php-config=/usr/bin/php-config56 make } check() { cd $srcdir/xcache-$pkgver export NO_INTERACTION=1 make test echo } package() { cd $srcdir/xcache-$pkgver make INSTALL_ROOT=$pkgdir install install -Dm644 $srcdir/xcache.ini $pkgdir/etc/php56/conf.d/xcache.ini install -dm755 $pkgdir/usr/share/webapps/php56-xcache cp -r htdocs/* $pkgdir/usr/share/webapps/php56-xcache/ install -Dm644 COPYING $pkgdir/usr/share/licenses/php56-xcache/COPYING }