diff options
author | Andy Postnikov <apostnikov@gmail.com> | 2019-03-31 22:49:09 +0300 |
---|---|---|
committer | Andy Postnikov <apostnikov@gmail.com> | 2019-03-31 22:56:50 +0300 |
commit | 5c58c5b4c972a7187eb4b5d4b7f19f7402058d97 (patch) | |
tree | 0e3429299299ea1edf83d0ddf0ced30d03242e84 /testing | |
parent | cf9661255d3c7fadc46fa13329d1bc5e1af27245 (diff) | |
download | aports-5c58c5b4c972a7187eb4b5d4b7f19f7402058d97.tar.bz2 aports-5c58c5b4c972a7187eb4b5d4b7f19f7402058d97.tar.xz |
testing/php7-pecl-pcov: new aport
Diffstat (limited to 'testing')
-rw-r--r-- | testing/php7-pecl-pcov/APKBUILD | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/testing/php7-pecl-pcov/APKBUILD b/testing/php7-pecl-pcov/APKBUILD new file mode 100644 index 0000000000..179c642e9c --- /dev/null +++ b/testing/php7-pecl-pcov/APKBUILD @@ -0,0 +1,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" |