aboutsummaryrefslogtreecommitdiffstats
path: root/community/php8-pecl-apcu/APKBUILD
blob: 85f931e4d32ae3d0009958f70407b0848c96dce7 (plain) (blame)
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
# Contributor: Carlo Landmeter <clandmeter@alpinelinux.org>
# Maintainer: Andy Postnikov <apostnikov@gmail.com>
pkgname=php8-pecl-apcu
_extname=apcu
pkgver=5.1.19
pkgrel=0
pkgdesc="PHP 8 extension APC User Cache - PECL"
url="https://pecl.php.net/package/apcu"
arch="all"
license="PHP-3.01"
depends="php8-common"
makedepends="php8-dev"
checkdepends="php8-pcntl php8-session"
source="$pkgname-$pkgver.tgz::https://pecl.php.net/get/$_extname-$pkgver.tgz"
builddir="$srcdir/$_extname-$pkgver"

build() {
	phpize8
	./configure --prefix=/usr --with-php-config=php-config8
	make
}

check() {
	local _modules=/usr/lib/php8/modules
	make NO_INTERACTION=1 REPORT_EXIT_STATUS=1 test \
		TESTS=--show-diff \
		PHP_TEST_SHARED_EXTENSIONS=" \
		-d extension=$_modules/pcntl.so \
		-d extension=modules/$_extname.so"
}

package() {
	make INSTALL_ROOT="$pkgdir"/ install
	install -D -m644 apc.php "$pkgdir"/usr/share/php8/apcu/apc.php

	local _confdir="$pkgdir"/etc/php8/conf.d
	install -d $_confdir
	echo "extension=$_extname.so" > $_confdir/$_extname.ini
}

sha512sums="45077e3bd0eac207539e2eafe21968c71f49b8c8920168dbafa87961b041f1d348b6bf1c130104744bc541e1f690854f0a29062e9520db81c04edeee3ef2ed99  php8-pecl-apcu-5.1.19.tgz"