summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
author吕海涛2016-12-13 18:36:16 +0800
committer吕海涛2016-12-14 10:47:22 +0800
commitcef05ad311c5e1eddc5ac8ac5b4ab1e33485e73b (patch)
tree20412c70e34d0f1d2b5b933023f042097b380301 /PKGBUILD
downloadaur-cef05ad311c5e1eddc5ac8ac5b4ab1e33485e73b.tar.gz
init
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD32
1 files changed, 32 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..4b4e63250ed
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,32 @@
+# Maintainer: 吕海涛 <aur@lvht.net>
+
+pkgname=php-zookeeper
+_extname=zookeeper
+pkgver=0.3.0
+pkgrel=1
+pkgdesc="PHP extension for interfacing with Apache ZooKeeper"
+arch=("i686" "x86_64")
+url="https://github.com/php-zookeeper/php-zookeeper"
+license=('PHP')
+depends=('php' 'libzookeeper')
+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=('701cfcc2a6b611e001940f6be323e9322085e1ea7386a3091c49e475e8855476')