1 # Maintainer: Pierre Schmitz <pierre@archlinux.de>
4 pkgname=(php-apcu php7-apcu)
8 pkgdesc='A userland caching module for PHP'
9 url='https://pecl.php.net/package/APCu'
10 makedepends=('php' 'php7')
12 source=("https://pecl.php.net/get/apcu-$pkgver.tgz"
14 sha256sums=('1033530448696ee7cadec85050f6df5135fb1330072ef2a74569392acfecfbc1'
15 '18b2d904848b185bdc7c0c6a5f7c82ec809e9ed3f137cd6d3420160f4756630f')
18 cd "$srcdir/apcu-$pkgver"
20 rm tests/apc_entry_002.phpt
22 cp -a "$srcdir/apcu-$pkgver" "$srcdir/apcu7-$pkgver"
26 cd "$srcdir/apcu-$pkgver"
28 ./configure --prefix=/usr
31 cd "$srcdir/apcu7-$pkgver"
33 ./configure --prefix=/usr
38 export REPORT_EXIT_STATUS=1
39 export NO_INTERACTION=1
40 export SKIP_ONLINE_TESTS=1
41 export SKIP_SLOW_TESTS=1
43 for dir in "$srcdir/apcu"{,7}-$pkgver; do
52 backup=('etc/php/conf.d/apcu.ini')
54 cd "$srcdir/apcu-$pkgver"
56 make INSTALL_ROOT="$pkgdir" install
58 install -D -m644 "$srcdir/apcu.ini" "$pkgdir/etc/php/conf.d/apcu.ini"
59 install -D -m644 apc.php "$pkgdir/usr/share/webapps/php-apcu/apc.php"
64 backup=('etc/php7/conf.d/apcu.ini')
66 cd "$srcdir/apcu7-$pkgver"
68 make INSTALL_ROOT="$pkgdir" install
70 install -D -m644 "$srcdir/apcu.ini" "$pkgdir/etc/php7/conf.d/apcu.ini"
71 install -D -m644 apc.php "$pkgdir/usr/share/webapps/php7-apcu/apc.php"