summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorStefan Auditor2016-02-17 14:33:41 +0100
committerStefan Auditor2016-02-17 14:33:41 +0100
commit2ba38f846e69891a7047535f6f061ba5a1f7ef9f (patch)
treee84484e34dc87564ef229ad8db9941678f44ca53
downloadaur-2ba38f846e69891a7047535f6f061ba5a1f7ef9f.tar.gz
initil commit
-rw-r--r--.SRCINFO22
-rw-r--r--PKGBUILD36
-rw-r--r--uploadprogress.install3
3 files changed, 61 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..79a9211fdbf
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,22 @@
+# Generated by mksrcinfo v8
+# Wed Feb 17 13:17:01 UTC 2016
+pkgbase = php-uploadprogress-git
+ pkgdesc = An uploadprogress extension for PHP
+ pkgver = r57.95d8a0f
+ pkgrel = 1
+ url = http://pecl.php.net/package/uploadprogress
+ install = uploadprogress.install
+ arch = i686
+ arch = x86_64
+ license = PHP
+ makedepends = php
+ makedepends = git
+ makedepends = autoconf
+ depends = php
+ provides = php-${_pkgname}
+ conflicts = php-${_pkgname}
+ source = uploadprogress::git+https://git.php.net/repository/pecl/php/uploadprogress.git
+ sha512sums = SKIP
+
+pkgname = php-uploadprogress-git
+
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}/"
+}
diff --git a/uploadprogress.install b/uploadprogress.install
new file mode 100644
index 00000000000..75e318efb8d
--- /dev/null
+++ b/uploadprogress.install
@@ -0,0 +1,3 @@
+post_install() {
+ echo "To enable uncomment ';extension=uploadprogress.so' in /etc/php/conf.d/uploadprogress.ini and restart httpd"
+}