summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorJakob Gahde2017-01-03 01:33:54 +0100
committerJakob Gahde2017-01-03 01:33:54 +0100
commit3f118d71edae7c6d72582952a0595692b97c9546 (patch)
treecdf3163cd03870aea99b340f1e8800840a08acf0
downloadaur-3f118d71edae7c6d72582952a0595692b97c9546.tar.gz
php-lzo-git r6.cad6299-1: New package
-rw-r--r--.SRCINFO20
-rw-r--r--PKGBUILD36
2 files changed, 56 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..b5df93d0f96
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,20 @@
+# Generated by mksrcinfo v8
+# Tue Jan 3 00:33:28 UTC 2017
+pkgbase = php-lzo-git
+ pkgdesc = lzo compression for php
+ pkgver = r6.cad6299
+ pkgrel = 1
+ url = https://github.com/adsr/php-lzo
+ arch = i686
+ arch = x86_64
+ license = PHP
+ makedepends = git
+ depends = php
+ depends = lzo
+ provides = php-lzo=r6.cad6299
+ conflicts = php-lzo
+ source = git+https://github.com/adsr/php-lzo.git
+ md5sums = SKIP
+
+pkgname = php-lzo-git
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..3cd98898fc1
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,36 @@
+# Maintainer: Jakob Gahde <j5lx@fmail.co.uk>
+
+_pkgname=php-lzo
+pkgname=${_pkgname}-git
+pkgver=r6.cad6299
+pkgrel=1
+pkgdesc="lzo compression for php"
+arch=('i686' 'x86_64')
+license=('PHP')
+url='https://github.com/adsr/php-lzo'
+depends=('php' 'lzo')
+makedepends=('git')
+provides=("${_pkgname}=${pkgver}")
+conflicts=("${_pkgname}")
+source=("git+https://github.com/adsr/php-lzo.git")
+md5sums=('SKIP')
+
+pkgver() {
+ cd "${srcdir}/${_pkgname}"
+
+ printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
+}
+
+build() {
+ cd "${srcdir}/${_pkgname}"
+
+ phpize
+ ./configure
+ make
+}
+
+package() {
+ cd "${srcdir}/${_pkgname}"
+
+ make install INSTALL_ROOT="${pkgdir}"
+}