summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorSpencer Rinehart2014-07-11 13:42:28 -0400
committerSpencer Rinehart2015-06-10 12:49:40 -0500
commit3eae94556a7f888405b962e05653dab8ca46cc8f (patch)
tree2dce91059a415fa48b680ca979302578c5bca4e2 /PKGBUILD
downloadaur-3eae94556a7f888405b962e05653dab8ca46cc8f.tar.gz
Initial commit.
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD31
1 files changed, 31 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..9606f7a5730
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,31 @@
+# Contributor: Spencer Rinehart <anubis@overthemonkey.com>
+
+pkgname=php-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=('php>=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}"
+
+ phpize
+ ./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/php/conf.d/${_extname}.ini"
+}