blob: f370970b61ef29e10128ef67c64774e4cd276a1c (
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
|
# Contributor: Gennady Feldman <gena01@gmail.com>
# Maintainer: Gennady Feldman <gena01@gmail.com>
pkgname=php7-rdkafka
_pkgreal=rdkafka
pkgver=3.0.1
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"
build() {
cd "$builddir"
phpize7 || return 1
./configure --prefix=/usr --with-php-config=/usr/bin/php-config7 || return 1
make || return 1
}
package() {
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
}
sha512sums="9d73fb14242f5f8b12f3cce583a5f91ea904a30b4da08a0d817f08c57f8975da2cd5e50411cca19047dc10be54adf21919218b04e8939d25f4c0e7fa3d06d0eb rdkafka-3.0.1.tgz"
|