summaryrefslogtreecommitdiffstats
path: root/php-imagick
diff options
context:
space:
mode:
Diffstat (limited to 'php-imagick')
-rw-r--r--php-imagick/PKGBUILD25
-rw-r--r--php-imagick/php-imagick.install14
2 files changed, 39 insertions, 0 deletions
diff --git a/php-imagick/PKGBUILD b/php-imagick/PKGBUILD
new file mode 100644
index 0000000..80936d1
--- /dev/null
+++ b/php-imagick/PKGBUILD
@@ -0,0 +1,25 @@
+# Contributor: Evangelos Foutras <foutrelis@gmail.com>
+
+pkgname=php-imagick
+pkgver=2.3.0
+pkgrel=1
+pkgdesc="PHP extension for IMagick"
+arch=('i686' 'x86_64')
+url="http://pecl.php.net/package/imagick"
+license=('PHP')
+depends=('php' 'imagemagick')
+backup=('etc/php/conf.d/memcached.ini')
+install=php-imagick.install
+source=(http://pecl.php.net/get/imagick-$pkgver.tgz)
+
+build() {
+ cd "$srcdir/imagick-$pkgver"
+
+ phpize || return 1
+ ./configure --prefix=/usr
+ make || return 1
+ make INSTALL_ROOT="$pkgdir" install
+ echo ';extension=imagick.so' > imagick.ini
+ install -D -m644 imagick.ini "$pkgdir/etc/php/conf.d/imagick.ini"
+}
+md5sums=('1493a21b37e209cc59764ac1ca2a1af9')
diff --git a/php-imagick/php-imagick.install b/php-imagick/php-imagick.install
new file mode 100644
index 0000000..266402b
--- /dev/null
+++ b/php-imagick/php-imagick.install
@@ -0,0 +1,14 @@
+post_install() {
+ echo '
+ ==> PHP extension
+
+ A config file was stored under /etc/php/conf.d/. In order to use this
+ extension make sure to uncomment it from its config file.
+ '
+}
+
+post_upgrade() {
+ post_install $1
+}
+
+# vim:set ts=2 sw=2 et: