summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorMladen Milinkovic2016-02-07 04:18:07 +0100
committerMladen Milinkovic2016-02-07 04:18:07 +0100
commitd00f5984a94317d99b0d1a49d1ac5b10cc71e5bb (patch)
tree3d9871ef4930fba3d962afc0c5fd783439009265
downloadaur-d00f5984a94317d99b0d1a49d1ac5b10cc71e5bb.tar.gz
php56-imagick 3.1.2
-rw-r--r--.SRCINFO19
-rw-r--r--.gitignore3
-rw-r--r--PKGBUILD32
-rw-r--r--php-imagick.install13
4 files changed, 67 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..96f42fec142
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,19 @@
+# Generated by mksrcinfo v8
+# Sun Feb 7 03:16:52 UTC 2016
+pkgbase = php56-imagick
+ pkgdesc = PHP extension for IMagick
+ pkgver = 3.1.2
+ pkgrel = 4
+ url = http://pecl.php.net/package/imagick
+ install = php-imagick.install
+ arch = i686
+ arch = x86_64
+ license = PHP
+ depends = php56>=5.1.3
+ depends = imagemagick>=6.2.4
+ backup = etc/php/conf.d/imagick.ini
+ source = http://pecl.php.net/get/imagick-3.1.2.tgz
+ md5sums = f2fd71b026debe056e0ec8d76c2ffe94
+
+pkgname = php56-imagick
+
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 00000000000..0cfa4c3ebb1
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,3 @@
+*.pkg.tar.xz
+pkg
+src
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..f397885fb8e
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,32 @@
+# Contributor: Mladen Milinkovic <maxrd2@smoothware.net>
+# Based on aur/php-imagick by Spencer Rinehart <anubis@overthemonkey.com>
+
+pkgname=php56-imagick
+_extname=imagick
+pkgver=3.1.2
+pkgrel=4
+pkgdesc="PHP extension for IMagick"
+arch=('i686' 'x86_64')
+url="http://pecl.php.net/package/${_extname}"
+license=('PHP')
+depends=('php56>=5.1.3' 'imagemagick>=6.2.4')
+backup=("etc/php/conf.d/${_extname}.ini")
+install="php-${_extname}.install"
+source=("http://pecl.php.net/get/${_extname}-${pkgver}.tgz")
+md5sums=('f2fd71b026debe056e0ec8d76c2ffe94')
+
+build() {
+ cd "${_extname}-${pkgver}"
+
+ phpize56
+ ./configure --prefix=/usr
+ make
+}
+
+package() {
+ cd "${_extname}-${pkgver}"
+
+ make INSTALL_ROOT="${pkgdir}" install
+ echo "extension=${_extname}.so" > "${_extname}.ini"
+ install -D -m644 "${_extname}.ini" "${pkgdir}/etc/php56/conf.d/${_extname}.ini"
+}
diff --git a/php-imagick.install b/php-imagick.install
new file mode 100644
index 00000000000..4c67a75d115
--- /dev/null
+++ b/php-imagick.install
@@ -0,0 +1,13 @@
+post_install() {
+ echo '
+ ==> PHP56 extension
+
+ A config file was stored under /etc/php56/conf.d/ with the extension enabled.
+ '
+}
+
+post_upgrade() {
+ post_install $1
+}
+
+# vim:set ts=2 sw=2 et: