Commit c5a45999 authored by Andy Postnikov's avatar Andy Postnikov
Browse files

testing/php8-pecl-pcov: new aport

parent 07e352ac
# Contributor: Andy Postnikov <apostnikov@gmail.com>
# Maintainer: Andy Postnikov <apostnikov@gmail.com>
pkgname=php8-pecl-pcov
_extname=pcov
pkgver=1.0.6
pkgrel=0
pkgdesc="Code coverage driver for PHP 8 - PECL"
url="https://pecl.php.net/package/pcov"
arch="all"
license="PHP-3.01"
depends="php8-common"
makedepends="php8-dev"
source="php-pecl-$_extname-$pkgver.tgz::https://pecl.php.net/get/$_extname-$pkgver.tgz
relax-test.patch::https://github.com/krakjoe/pcov/commit/7c0cfac1f536396f7169f4ec46419941a0e61314.patch
"
builddir="$srcdir"/$_extname-$pkgver
build() {
phpize8
./configure --prefix=/usr --with-php-config=php-config8
make
}
check() {
php8 -dextension=modules/$_extname.so --ri $_extname
make NO_INTERACTION=1 REPORT_EXIT_STATUS=1 test TESTS=--show-diff
}
package() {
make INSTALL_ROOT="$pkgdir" install
local _confdir="$pkgdir"/etc/php8/conf.d
mkdir -p $_confdir
echo "extension=$_extname" > $_confdir/$_extname.ini
}
sha512sums="4e715ad52a89e2a3226b23520e8ea3410288de96c3a3a08840e94628f5e4d0716392188d72247751e4cd1327deb2a11269081c089d6a455d214adbec59d8632f php-pecl-pcov-1.0.6.tgz
3955b0ec5cfe4972f91a1bbb0bde9e6724039b3218385ba7ae1b5d34ddb5ad2e5f5a90c861ebde02ef75e6cc8ac60bcb11df05c86248146b62011c05c68cd311 relax-test.patch"
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment