blob: 4ab22959f1f5cbdedf4fe1e9aaa3a176bb7050cd (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
|
# Maintainer: Jeremy Kescher <jeremy@kescher.at>
# Based on php80-apcu maintained by Timo Sarawinski <timo@it-kraut.net>
pkgname=php81-apcu
pkgver=5.1.22
pkgrel=1
arch=('x86_64')
pkgdesc='A userland caching module for PHP 8.1'
url='https://pecl.php.net/package/APCu'
makedepends=("php81")
license=('PHP')
source=("https://pecl.php.net/get/apcu-${pkgver}.tgz"
"apcu.ini")
backup=("etc/php81/conf.d/apcu.ini")
sha256sums=('010a0d8fd112e1ed7a52a356191da3696a6b76319423f7b0dfdeaeeafcb41a1e'
'18b2d904848b185bdc7c0c6a5f7c82ec809e9ed3f137cd6d3420160f4756630f')
prepare() {
cd "$srcdir/apcu-$pkgver"
rm tests/apc_entry_002.phpt
}
build() {
cd "${srcdir}/apcu-${pkgver}"
phpize81
./configure --prefix=/usr
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
export TEST_PHPDBG_EXECUTABLE=phpdbg81
make test
}
package() {
depends=("php81")
cd "${srcdir}/apcu-${pkgver}"
make INSTALL_ROOT=${pkgdir} install
install -D -m644 "$srcdir/apcu.ini" "${pkgdir}/etc/php81/conf.d/apcu.ini"
install -D -m644 apc.php "${pkgdir}/usr/share/webapps/${pkgname}/apc.php"
}
|