aboutsummaryrefslogtreecommitdiffstats
path: root/testing/php7-pecl-pcov/APKBUILD
blob: 179c642e9c42884881df5c75d611f29f1b3d24e4 (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
# Contributor: Andy Postnikov <apostnikov@gmail.com>
# Maintainer: Andy Postnikov <apostnikov@gmail.com>

pkgname=php7-pecl-pcov
_pkgreal=pcov
pkgver=1.0.2
pkgrel=0
pkgdesc="Code coverage driver for PHP"
url="https://pecl.php.net/package/pcov"
arch="all"
license="PHP-3.01"
depends="php7-common"
makedepends="php7-dev autoconf re2c"
source="https://pecl.php.net/get/$_pkgreal-$pkgver.tgz"
builddir="$srcdir"/$_pkgreal-$pkgver

build() {
	cd "$builddir"
	phpize7
	./configure \
		--prefix=/usr \
		--with-php-config=php-config7
	make
}

check() {
	cd "$builddir"
	make NO_INTERACTION=1 REPORT_EXIT_STATUS=1 test
	php7 -d extension="$builddir"/modules/$_pkgreal.so --ri $_pkgreal
}

package() {
	local confdir="$pkgdir/etc/php7/conf.d"
	cd "$builddir"

	make INSTALL_ROOT="$pkgdir" install

	mkdir -p "$confdir"
	echo "extension=$_pkgreal.so" > "$confdir"/$_pkgreal.ini
}

sha512sums="1221d2d70b612cd5cedb840f7f76dd43b15834ceb5e938abad2fe8b2b05b94f112ebbf3db914480e04e652b113422af589a0fdbad0f0120a061a207ad73b1de8  pcov-1.0.2.tgz"