summarylogtreecommitdiffstats
diff options
context:
space:
mode:
author吕海涛2016-12-13 18:36:16 +0800
committer吕海涛2016-12-14 10:47:22 +0800
commitcef05ad311c5e1eddc5ac8ac5b4ab1e33485e73b (patch)
tree20412c70e34d0f1d2b5b933023f042097b380301
downloadaur-cef05ad311c5e1eddc5ac8ac5b4ab1e33485e73b.tar.gz
init
-rw-r--r--.SRCINFO16
-rw-r--r--.gitignore4
-rw-r--r--PKGBUILD32
3 files changed, 52 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..0d0f8702ec2
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,16 @@
+pkgbase = php-zookeeper
+ pkgdesc = PHP extension for interfacing with Apache ZooKeeper
+ pkgver = 0.3.0
+ pkgrel = 1
+ url = https://github.com/php-zookeeper/php-zookeeper
+ arch = i686
+ arch = x86_64
+ license = PHP
+ depends = php
+ depends = libzookeeper
+ backup = etc/php/conf.d/zookeeper.ini
+ source = http://pecl.php.net/get/zookeeper-0.3.0.tgz
+ sha256sums = 701cfcc2a6b611e001940f6be323e9322085e1ea7386a3091c49e475e8855476
+
+pkgname = php-zookeeper
+
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 00000000000..a7c337f6428
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,4 @@
+*.xz
+*.tgz
+pkg/
+src/
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')