mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-08-07 06:17:14 +02:00
testing/php7-rdkafka: modernize
This commit is contained in:
parent
0d85524568
commit
88907fa9bd
@ -3,35 +3,37 @@
|
|||||||
pkgname=php7-rdkafka
|
pkgname=php7-rdkafka
|
||||||
_pkgreal=rdkafka
|
_pkgreal=rdkafka
|
||||||
pkgver=3.0.5
|
pkgver=3.0.5
|
||||||
pkgrel=0
|
pkgrel=1
|
||||||
pkgdesc="A librdkafka bindings for PHP7 providing a working client for Kafka 0.8-0.10"
|
pkgdesc="A librdkafka bindings for PHP7 providing a working client for Kafka 0.8-0.10"
|
||||||
url="http://pecl.php.net/package/$_pkgreal"
|
url="http://pecl.php.net/package/$_pkgreal"
|
||||||
arch="all"
|
arch="all"
|
||||||
license="MIT"
|
license="MIT"
|
||||||
depends=""
|
depends=""
|
||||||
makedepends="php7-dev autoconf file librdkafka-dev pcre-dev"
|
makedepends="php7-dev autoconf file librdkafka-dev pcre-dev"
|
||||||
source="http://pecl.php.net/get/$_pkgreal-$pkgver.tgz"
|
# http://pecl.php.net/get/$_pkgreal-$pkgver.tgz does not include the tests
|
||||||
builddir="$srcdir/$_pkgreal-$pkgver"
|
source="$_pkgreal-$pkgver.tgz::https://github.com/arnaud-lb/php-rdkafka/archive/$pkgver.tar.gz"
|
||||||
|
builddir="$srcdir/php-$_pkgreal-$pkgver"
|
||||||
|
|
||||||
build() {
|
build() {
|
||||||
cd "$builddir"
|
cd "$builddir"
|
||||||
|
|
||||||
phpize7 || return 1
|
phpize7
|
||||||
./configure --prefix=/usr --with-php-config=/usr/bin/php-config7 || return 1
|
./configure --prefix=/usr --with-php-config=/usr/bin/php-config7
|
||||||
make || return 1
|
make
|
||||||
|
}
|
||||||
|
|
||||||
|
check() {
|
||||||
|
cd "$builddir"
|
||||||
|
|
||||||
|
make NO_INTERACTION=1 REPORT_EXIT_STATUS=1 test
|
||||||
}
|
}
|
||||||
|
|
||||||
package() {
|
package() {
|
||||||
cd "$builddir"
|
cd "$builddir"
|
||||||
|
|
||||||
make INSTALL_ROOT="$pkgdir"/ install || return 1
|
make INSTALL_ROOT="$pkgdir"/ install
|
||||||
install -d "$pkgdir"/etc/php7/conf.d || return 1
|
install -d "$pkgdir"/etc/php7/conf.d
|
||||||
echo "extension=$_pkgreal.so" > "$pkgdir"/etc/php7/conf.d/$_pkgreal.ini
|
echo "extension=$_pkgreal.so" > "$pkgdir"/etc/php7/conf.d/$_pkgreal.ini
|
||||||
}
|
}
|
||||||
|
|
||||||
check() {
|
sha512sums="83bc72106e047b5b2af8f48eccd48ef8a374a8af5440f6aa83aaeadd62c07995b7dc534feb22c2e0183cbb582f72593d3cd02441fca83f85f0795f0d63a84f23 rdkafka-3.0.5.tgz"
|
||||||
cd "$builddir"
|
|
||||||
make test
|
|
||||||
}
|
|
||||||
|
|
||||||
sha512sums="31d5b032c5d6bfb029328acd2f4ac42adf554137f68f61643cb004db8f596a05ab763e93dae2705c383924b4ecfdac8410708406b84bfe1fd983e8599e534358 rdkafka-3.0.5.tgz"
|
|
||||||
|
Loading…
Reference in New Issue
Block a user