blob: af071aeb2056e2726a012cf76331698b2c8b00b9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
|
# Contributor: Gennady Feldman <gena01@gmail.com>
# Maintainer: Gennady Feldman <gena01@gmail.com>
pkgname=php7-pecl-rdkafka
_pkgreal=rdkafka
pkgver=3.1.1
pkgrel=0
pkgdesc="A librdkafka bindings for PHP7 providing a working client for Kafka 0.8-0.10"
url="https://pecl.php.net/package/$_pkgreal"
arch="all"
license="MIT"
makedepends="php7-dev autoconf file librdkafka-dev pcre-dev re2c"
# https://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"
provides="php7-rdkafka=$pkgver-r$pkgrel" # for backward compatibility
replaces="php7-rdkafka" # for backward compatibility
build() {
phpize7
./configure --prefix=/usr --with-php-config=/usr/bin/php-config7
make
}
check() {
make NO_INTERACTION=1 REPORT_EXIT_STATUS=1 test
}
package() {
make INSTALL_ROOT="$pkgdir"/ install
install -d "$pkgdir"/etc/php7/conf.d
echo "extension=$_pkgreal.so" > "$pkgdir"/etc/php7/conf.d/$_pkgreal.ini
}
sha512sums="57704b07276515461a6bd1056ed0720ba427f355a95c102059daf3dce4390d96a4687530251153051f44b3e11ef91df62ecd1fd0ec64b38a7659bd1600f80679 rdkafka-3.1.1.tgz"
|