#$Id: PKGBUILD,v 1.8 2007/02/15 23:14:28 tobias Exp $ # Maintainer: tobias # Contributor: eliott pkgname=eaccelerator _srcver=0.9.5 pkgver=`echo ${_srcver} | sed 's:-::'` pkgrel=3 pkgdesc="eAccelerator is successor of mmcache. caches php scripts in compiled state" arch=(i686 x86_64) # fixed missing license tag license=('GPL') url="http://eaccelerator.net" depends=('php' 'vim') provides=('php-accelerator') install=${pkgname}.install # had to change mirror, it was unreachable at compile time #source=(http://dl.sourceforge.net/sourceforge/${pkgname}/${pkgname}-${_srcver}.tar.bz2 cache.patch) source=(http://belnet.dl.sourceforge.net/sourceforge/eaccelerator/eaccelerator-0.9.5.tar.bz2 cache.patch) md5sums=('dad54af67488b83a2af6e30f661f613b' '2b31147e26e0cccf581e65e4c3379a11') export GZIP="-q -f" build() { cd ${startdir}/src/${pkgname}-${_srcver} # apply the patch patch -p0 <${startdir}/cache.patch export PHP_PREFIX="/usr" ${PHP_PREFIX}/bin/phpize ./configure --prefix=/usr \ --enable-eaccelerator=shared \ --with-php-config=/usr/bin/php-config make || return 1 make INSTALL_ROOT=${startdir}/pkg install || return 1 install -dm777 ${startdir}/pkg/var/cache/eaccelerator }