mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-08-05 21:37:15 +02:00
testing/php7-rdkafka: modernize
This commit is contained in:
parent
0d85524568
commit
88907fa9bd
@ -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
|
||||
}
|
||||
|
||||
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/$_pkgreal.ini
|
||||
}
|
||||
|
||||
check() {
|
||||
cd "$builddir"
|
||||
make test
|
||||
}
|
||||
|
||||
sha512sums="31d5b032c5d6bfb029328acd2f4ac42adf554137f68f61643cb004db8f596a05ab763e93dae2705c383924b4ecfdac8410708406b84bfe1fd983e8599e534358 rdkafka-3.0.5.tgz"
|
||||
sha512sums="83bc72106e047b5b2af8f48eccd48ef8a374a8af5440f6aa83aaeadd62c07995b7dc534feb22c2e0183cbb582f72593d3cd02441fca83f85f0795f0d63a84f23 rdkafka-3.0.5.tgz"
|
||||
|
Loading…
Reference in New Issue
Block a user