# $Id: PKGBUILD 170770 2012-11-11 06:21:29Z pierre $ # Maintainer: Pierre Schmitz pkgname=php-xcache pkgver=3.0.0 pkgrel=2 arch=('i686' 'x86_64') pkgdesc='A PHP opcode cacher' url='http://xcache.lighttpd.net/' depends=('php') license=('custom') source=("http://xcache.lighttpd.net/pub/Releases/${pkgver}/xcache-${pkgver}.tar.bz2" 'xcache.ini') backup=('etc/php/conf.d/xcache.ini') md5sums=('63be7c8b14ffc01babe5378111f13228' '8fd9ce537ada9463c4b0c042243158c0') build() { cd $srcdir/xcache-$pkgver phpize ./configure --prefix=/usr make } # check() { # cd $srcdir/xcache-$pkgver # make test # } package() { cd $srcdir/xcache-$pkgver make INSTALL_ROOT=$pkgdir install install -Dm644 $srcdir/xcache.ini $pkgdir/etc/php/conf.d/xcache.ini install -dm755 $pkgdir/usr/share/php-xcache/admin cp -r htdocs/* $pkgdir/usr/share/php-xcache/admin/ install -Dm644 COPYING $pkgdir/usr/share/licenses/php-xcache/COPYING }