diff options
author | 吕海涛 | 2016-12-13 18:36:16 +0800 |
---|---|---|
committer | 吕海涛 | 2016-12-14 10:49:15 +0800 |
commit | eb7195997dcbea73195839a067acea84c1a2c830 (patch) | |
tree | 5a5ad7c5eb4e3c2117357162dd05214da07a2300 | |
download | aur-eb7195997dcbea73195839a067acea84c1a2c830.tar.gz |
init
-rw-r--r-- | .SRCINFO | 16 | ||||
-rw-r--r-- | .gitignore | 4 | ||||
-rw-r--r-- | PKGBUILD | 32 |
3 files changed, 52 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..40c6eeb150c2 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,16 @@ +pkgbase = php-rdkafka + pkgdesc = This extension is a librdkafka binding providing a working client for Kafka 0.8, 0.9, 0.10 + pkgver = 2.0.1 + pkgrel = 1 + url = https://github.com/arnaud-lb/php-rdkafka + arch = i686 + arch = x86_64 + license = MIT License + depends = php + depends = librdkafka-git + backup = etc/php/conf.d/rdkafka.ini + source = http://pecl.php.net/get/rdkafka-2.0.1.tgz + sha256sums = 43a3704198f7d8ae23f6ed06d2d28ae4d52bae0f93f484aa5d61d5d60f809eee + +pkgname = php-rdkafka + diff --git a/.gitignore b/.gitignore new file mode 100644 index 000000000000..a7c337f64286 --- /dev/null +++ b/.gitignore @@ -0,0 +1,4 @@ +*.xz +*.tgz +pkg/ +src/ diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..099912fb1c08 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,32 @@ +# Maintainer: 吕海涛 <aur@lvht.net> + +pkgname=php-rdkafka +_extname=rdkafka +pkgver=2.0.1 +pkgrel=1 +pkgdesc="This extension is a librdkafka binding providing a working client for Kafka 0.8, 0.9, 0.10" +arch=("i686" "x86_64") +url="https://github.com/arnaud-lb/php-rdkafka" +license=('MIT License') +depends=('php' 'librdkafka-git') +source=("http://pecl.php.net/get/$_extname-$pkgver.tgz") +backup=("etc/php/conf.d/$_extname.ini") +packager="吕海涛 <aur@lvht.net>" + +build() { + cd "$srcdir/$_extname-$pkgver" + phpize + ./configure + make +} + +package() { + cd "$srcdir/$_extname-$pkgver" + install -m0755 -d "$pkgdir/etc/php/conf.d/" + install -m0644 -D "LICENSE" "${pkgdir}/usr/share/licenses/$pkgname/LICENSE" + echo "extension=$_extname.so" > "$pkgdir/etc/php/conf.d/$_extname.ini" + chmod 0644 "$pkgdir/etc/php/conf.d/$_extname.ini" + install -m0755 -D ".libs/$_extname.so" "$pkgdir$(php-config --extension-dir)/$_extname.so" +} + +sha256sums=('43a3704198f7d8ae23f6ed06d2d28ae4d52bae0f93f484aa5d61d5d60f809eee') |