aboutsummaryrefslogtreecommitdiffstats
path: root/testing
diff options
context:
space:
mode:
authorTBK <tbk@jjtc.dk>2018-03-21 16:55:11 +0100
committerAndy Postnikov <apostnikov@gmail.com>2018-03-29 23:54:43 +0300
commit88907fa9bd622cc55b6665f17a8709187428f8b6 (patch)
treecd39150fe54257f659c40382ee4faea5a05a3b86 /testing
parent0d855245681f6e3c80369713c80c5fdc4e064e7e (diff)
downloadaports-88907fa9bd622cc55b6665f17a8709187428f8b6.tar.bz2
aports-88907fa9bd622cc55b6665f17a8709187428f8b6.tar.xz
testing/php7-rdkafka: modernize
Diffstat (limited to 'testing')
-rw-r--r--testing/php7-rdkafka/APKBUILD28
1 files changed, 15 insertions, 13 deletions
diff --git a/testing/php7-rdkafka/APKBUILD b/testing/php7-rdkafka/APKBUILD
index 204ae15011..37da456573 100644
--- a/testing/php7-rdkafka/APKBUILD
+++ b/testing/php7-rdkafka/APKBUILD
@@ -3,35 +3,37 @@
pkgname=php7-rdkafka
_pkgreal=rdkafka
pkgver=3.0.5
-pkgrel=0
+pkgrel=1
pkgdesc="A librdkafka bindings for PHP7 providing a working client for Kafka 0.8-0.10"
url="http://pecl.php.net/package/$_pkgreal"
arch="all"
license="MIT"
depends=""
makedepends="php7-dev autoconf file librdkafka-dev pcre-dev"
-source="http://pecl.php.net/get/$_pkgreal-$pkgver.tgz"
-builddir="$srcdir/$_pkgreal-$pkgver"
+# http://pecl.php.net/get/$_pkgreal-$pkgver.tgz does not include the tests
+source="$_pkgreal-$pkgver.tgz::https://github.com/arnaud-lb/php-rdkafka/archive/$pkgver.tar.gz"
+builddir="$srcdir/php-$_pkgreal-$pkgver"
build() {
cd "$builddir"
- phpize7 || return 1
- ./configure --prefix=/usr --with-php-config=/usr/bin/php-config7 || return 1
- make || return 1
+ phpize7
+ ./configure --prefix=/usr --with-php-config=/usr/bin/php-config7
+ make
}
-package() {
+check() {
cd "$builddir"
- make INSTALL_ROOT="$pkgdir"/ install || return 1
- install -d "$pkgdir"/etc/php7/conf.d || return 1
- echo "extension=$_pkgreal.so" > "$pkgdir"/etc/php7/conf.d/$_pkgreal.ini
+ make NO_INTERACTION=1 REPORT_EXIT_STATUS=1 test
}
-check() {
+package() {
cd "$builddir"
- make test
+
+ make INSTALL_ROOT="$pkgdir"/ install
+ install -d "$pkgdir"/etc/php7/conf.d
+ echo "extension=$_pkgreal.so" > "$pkgdir"/etc/php7/conf.d/$_pkgreal.ini
}
-sha512sums="31d5b032c5d6bfb029328acd2f4ac42adf554137f68f61643cb004db8f596a05ab763e93dae2705c383924b4ecfdac8410708406b84bfe1fd983e8599e534358 rdkafka-3.0.5.tgz"
+sha512sums="83bc72106e047b5b2af8f48eccd48ef8a374a8af5440f6aa83aaeadd62c07995b7dc534feb22c2e0183cbb582f72593d3cd02441fca83f85f0795f0d63a84f23 rdkafka-3.0.5.tgz"