summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorStefan Auditor2016-02-17 14:33:41 +0100
committerStefan Auditor2016-02-17 14:33:41 +0100
commit2ba38f846e69891a7047535f6f061ba5a1f7ef9f (patch)
treee84484e34dc87564ef229ad8db9941678f44ca53 /PKGBUILD
downloadaur-2ba38f846e69891a7047535f6f061ba5a1f7ef9f.tar.gz
initil commit
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD36
1 files changed, 36 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..55cabfbf0fb
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,36 @@
+# Maintainer: Stefan Auditor <stefan.auditor@erdfisch.de>
+
+_pkgname=uploadprogress
+pkgname=php-${_pkgname}-git
+pkgver=r57.95d8a0f
+pkgrel=1
+pkgdesc="An extension to track progress of a file upload"
+arch=('i686' 'x86_64')
+url="http://pecl.php.net/package/uploadprogress"
+license=('PHP')
+depends=('php')
+makedepends=('php' 'git' 'autoconf')
+provides=('php-${_pkgname}')
+conflicts=('php-${_pkgname}')
+install=${_pkgname}.install
+source=("${_pkgname}"::"git+https://git.php.net/repository/pecl/php/uploadprogress.git")
+sha512sums=('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}"
+ echo ";extension=${_pkgname}.so" > ${_pkgname}.ini
+ install -Dm644 ${_pkgname}.ini "${pkgdir}/etc/php/conf.d/${_pkgname}.ini"
+ make install INSTALL_ROOT="${pkgdir}/"
+}