summarylogtreecommitdiffstats
diff options
context:
space:
mode:
author吕海涛2015-08-15 04:06:39 +0800
committer吕海涛2015-08-15 04:16:32 +0800
commit8ce1e59896788fedb1ed1fa8882837856429085c (patch)
tree0efb25cf5cb765f35fd0d99dc7fcde6868f86bde
downloadaur-8ce1e59896788fedb1ed1fa8882837856429085c.tar.gz
init
-rw-r--r--.SRCINFO17
-rw-r--r--PKGBUILD32
2 files changed, 49 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..89f3140eb24
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,17 @@
+# Generated by makepkg 4.2.1
+# Fri Aug 14 20:15:58 UTC 2015
+pkgbase = php-msgpack
+ pkgdesc = PHP extension for interfacing with MessagePack
+ pkgver = 0.5.6
+ pkgrel = 1
+ url = http://msgpack.org/
+ arch = i686
+ arch = x86_64
+ license = New BSD
+ depends = php
+ backup = etc/php/conf.d/msgpack.ini
+ source = http://pecl.php.net/get/msgpack-0.5.6.tgz
+ sha256sums = c118b942557dd1a0f0e6966457779d1d2fc4439a15f9b1d076b4e79a90f3b753
+
+pkgname = php-msgpack
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..50e4ada7c21
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,32 @@
+# Maintainer: 吕海涛 <aur@lvht.net>
+
+pkgname=php-msgpack
+_extname=msgpack
+pkgver=0.5.6
+pkgrel=1
+pkgdesc="PHP extension for interfacing with MessagePack"
+arch=("i686" "x86_64")
+url="http://msgpack.org/"
+license=('New BSD')
+depends=('php')
+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=('c118b942557dd1a0f0e6966457779d1d2fc4439a15f9b1d076b4e79a90f3b753')