summarylogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.SRCINFO17
-rw-r--r--PKGBUILD31
-rw-r--r--php-imagick.install13
3 files changed, 61 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..a328c81e595
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,17 @@
+pkgbase = php70-imagick
+ pkgdesc = PHP extension for IMagick
+ pkgver = 3.4.3
+ pkgrel = 1
+ url = http://pecl.php.net/package/imagick
+ install = php-imagick.install
+ arch = i686
+ arch = x86_64
+ license = PHP
+ depends = php70>=7.0.26-1
+ depends = imagemagick>=6.2.4
+ backup = etc/php/conf.d/imagick.ini
+ source = http://pecl.php.net/get/imagick-3.4.3.tgz
+ md5sums = d0ee25c007cd2a28cefccc0b9ee63a28
+
+pkgname = php70-imagick
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..ece25c3a3f2
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,31 @@
+# Maintainer: Jérôme Groven <jerome.groven [at] gmail [dot] com>
+
+pkgname=php70-imagick
+_extname=imagick
+pkgver=3.4.3
+pkgrel=1
+pkgdesc="PHP extension for IMagick"
+arch=('i686' 'x86_64')
+url="http://pecl.php.net/package/${_extname}"
+license=('PHP')
+depends=('php70>=7.0.26-1' '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=('d0ee25c007cd2a28cefccc0b9ee63a28')
+
+build() {
+ cd "${_extname}-${pkgver}"
+
+ phpize70
+ ./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/php70/conf.d/${_extname}.ini"
+}
diff --git a/php-imagick.install b/php-imagick.install
new file mode 100644
index 00000000000..0aae01227c1
--- /dev/null
+++ b/php-imagick.install
@@ -0,0 +1,13 @@
+post_install() {
+ echo '
+ ==> PHP70 extension
+
+ A config file was stored under /etc/php70/conf.d/ with the extension enabled.
+ '
+}
+
+post_upgrade() {
+ post_install $1
+}
+
+# vim:set ts=2 sw=2 et: