# Contributor: Valery Kartel # Maintainer: Valery Kartel _php=php5 pkgname=${_php}-imagick _pkgreal=imagick pkgver=3.4.2 pkgrel=2 pkgdesc="PHP bindings to the ImageMagick library." url="http://pecl.php.net/package/imagick" arch="all" license="PHP" depends= pecldepends="${_php}-dev autoconf" makedepends="$pecldepends imagemagick-dev libtool" install="" subpackages="" source="http://pecl.php.net/get/$_pkgreal-$pkgver.tgz" _builddir="$srcdir"/$_pkgreal-$pkgver prepare() { cd "$_builddir" phpize || return 1 } build() { cd "$_builddir" ./configure --prefix=/usr || return 1 make || return 1 } package() { cd "$_builddir" make INSTALL_ROOT="$pkgdir/" install || return 1 install -d "$pkgdir"/etc/$_php/conf.d || return 1 echo "extension=$_pkgreal.so" > "$pkgdir"/etc/$_php/conf.d/$_pkgreal.ini [ -d "$pkgdir"/usr/include ] && rm -fr "$pkgdir"/usr/include } md5sums="3f80e35c2434636cdb5df01b221b3ffa imagick-3.4.2.tgz" sha256sums="8e16b7bc6cf6567f4b4c4ac7294cbf650fe050a848c6a7ba6e2bee02097ab4a8 imagick-3.4.2.tgz" sha512sums="5e7cf495f4d6377a54b207b3fa14a5b2cff9d89dbe9c17b88c66102138ff9f485a34669138cf7903c5b54eb9d5d49f6fa2629216c487e56dc6b1e6c5c68ac1d2 imagick-3.4.2.tgz"