Created
March 26, 2018 18:16
-
-
Save synthead/87d9ef3083ec53f42acf33f2396e2496 to your computer and use it in GitHub Desktop.
php71-apcu
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
;extension=apcu.so | |
; install php-apcu-bc and enable apc.so for APC compatibility | |
;extension=apc.so |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Maintainer: Maxwell Pray a.k.a. Synthead <[email protected]> | |
# Contributor: Pierre Schmitz <[email protected]> | |
pkgname=php71-apcu | |
pkgver=5.1.10 | |
pkgrel=1 | |
arch=('x86_64') | |
pkgdesc='A userland caching module for PHP' | |
url='https://pecl.php.net/package/APCu' | |
depends=('php71') | |
license=('PHP') | |
source=("https://pecl.php.net/get/apcu-${pkgver}.tgz" | |
'apcu.ini') | |
backup=("${_optdir}etc/php/conf.d/apcu.ini") | |
md5sums=('a16259bb080b632d11d8ada09dd5ab56' | |
'a353f7efe61928aa2162720789fa171f') | |
_optdir=/opt/php71 | |
build() { | |
cd ${srcdir}/apcu-${pkgver} | |
${_optdir}/usr/bin/phpize | |
./configure \ | |
--prefix=${_optdir}/usr \ | |
--with-php-config=${_optdir}/usr/bin/php-config | |
make | |
} | |
check() { | |
cd ${srcdir}/apcu-${pkgver} | |
export REPORT_EXIT_STATUS=1 | |
export NO_INTERACTION=1 | |
export SKIP_ONLINE_TESTS=1 | |
export SKIP_SLOW_TESTS=1 | |
make test | |
} | |
package() { | |
cd ${srcdir}/apcu-${pkgver} | |
make INSTALL_ROOT=${pkgdir} install | |
install -D -m644 ${srcdir}/apcu.ini ${pkgdir}${_optdir}/etc/php/conf.d/apcu.ini | |
install -D -m644 apc.php ${pkgdir}/usr/share/webapps/php71-apcu/apc.php | |
install -D -m644 INSTALL ${pkgdir}${_optdir}/usr/share/doc/php-apcu/install.txt | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment