diff options
author | TBK <tbk@jjtc.dk> | 2018-03-21 17:11:13 +0100 |
---|---|---|
committer | Andy Postnikov <apostnikov@gmail.com> | 2018-03-29 23:54:43 +0300 |
commit | 2529c22641389ccd369a3f7174f1d0e67d003751 (patch) | |
tree | bbc1f0298c0c093cfa2c62e4a1119a043912e8b0 | |
parent | 88907fa9bd622cc55b6665f17a8709187428f8b6 (diff) | |
download | aports-2529c22641389ccd369a3f7174f1d0e67d003751.tar.bz2 aports-2529c22641389ccd369a3f7174f1d0e67d003751.tar.xz |
testing/php7-stats: modernize
-rw-r--r-- | testing/php7-stats/APKBUILD | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/testing/php7-stats/APKBUILD b/testing/php7-stats/APKBUILD index 8ef6b2372b..fb2ec1021f 100644 --- a/testing/php7-stats/APKBUILD +++ b/testing/php7-stats/APKBUILD @@ -3,33 +3,33 @@ pkgname=php7-stats _pkgreal=stats pkgver=2.0.3 -pkgrel=1 +pkgrel=2 pkgdesc="Extension that provides few dozens routines for statistical computation." url="http://pecl.php.net/package/$_pkgreal" arch="all" license="PHP" -depends= +depends="" makedepends="php7-dev autoconf" -install="" -subpackages="" source="http://pecl.php.net/get/$_pkgreal-$pkgver.tgz" - builddir="$srcdir"/$_pkgreal-$pkgver build() { cd "$builddir" - phpize7 || return 1 - ./configure --prefix=/usr --with-php-config=php-config7 || return 1 - make || return 1 + phpize7 + ./configure --prefix=/usr --with-php-config=php-config7 + make +} + +check() { + cd "$builddir" + make NO_INTERACTION=1 REPORT_EXIT_STATUS=1 test } package() { cd "$builddir" - make INSTALL_ROOT="$pkgdir"/ install || return 1 - install -d "$pkgdir"/etc/php7/conf.d || return 1 + make INSTALL_ROOT="$pkgdir"/ install + install -d "$pkgdir"/etc/php7/conf.d echo "extension=$_pkgreal.so" > "$pkgdir"/etc/php7/conf.d/60_$_pkgreal.ini } -md5sums="6481d308c85bc0095b8f9253a2505bd7 stats-2.0.3.tgz" -sha256sums="7f2bc60136594cea27d9f997a6622270408ca90c4428f6f2e20938c88fab1b57 stats-2.0.3.tgz" sha512sums="68a21296f8892c399d961bc1bba31cb6ebf6e0533fd396fc8527a33aa0b7cc189e718bd22dddbaaaeda183488971f02e87b2d9514085cc2a3d0fc558921a584c stats-2.0.3.tgz" |