summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authormlex2017-03-01 17:12:22 +0300
committermlex2017-03-01 17:12:22 +0300
commite7acfd3be29697320d8cdc369ca1dd6f5a76c5c5 (patch)
treea10f822e05063aa4769314dc6fece9beb829f75e
downloadaur-e7acfd3be29697320d8cdc369ca1dd6f5a76c5c5.tar.gz
v1.0.0
-rw-r--r--.SRCINFO15
-rw-r--r--PKGBUILD29
2 files changed, 44 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..d021fa0d905
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,15 @@
+pkgbase = php-pinba
+ pkgdesc = Pinba client C-extension for PHP
+ pkgver = 1.0.0
+ pkgrel = 1
+ url = http://pinba.org
+ arch = x86_64
+ arch = i686
+ license = GPL3
+ makedepends = gcc
+ depends = php
+ source = https://github.com/tony2001/pinba_extension/archive/RELEASE_1_1_0.tar.gz
+ sha256sums = SKIP
+
+pkgname = php-pinba
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..fea595d8a3c
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,29 @@
+# Maintainer: Maxim Novikov <the.mlex@gmail.com>
+
+pkgname=php-pinba
+_pkgname=pinba_extension-RELEASE_1_1_0
+pkgver=1.0.0
+pkgrel=1
+pkgdesc="Pinba client C-extension for PHP"
+url="http://pinba.org"
+arch=('x86_64' 'i686')
+license=('GPL3')
+depends=('php')
+makedepends=('gcc')
+source=(https://github.com/tony2001/pinba_extension/archive/RELEASE_1_1_0.tar.gz)
+sha256sums=('SKIP')
+
+build() {
+ cd "$srcdir/$_pkgname"
+ phpize
+ ./configure --prefix=/usr --enable-pinba
+ make
+}
+
+package() {
+ cd "$srcdir/$_pkgname"
+
+ make INSTALL_ROOT="$pkgdir" install
+ echo 'extension=pinba.so' > pinba.ini
+ install -Dm644 pinba.ini "$pkgdir/etc/php/conf.d/pinba.ini"
+}