# Contributor: Valery Kartel # Maintainer: Valery Kartel pkgname=php7-imagick _pkgreal=imagick pkgver=3.4.3 pkgrel=7 _phpver=${pkgname#php} _phpver=${_phpver%%-*} pkgdesc="PHP$_phpver extension: Provides a wrapper to the ImageMagick library" url="http://pecl.php.net/package/imagick" arch="all" license="PHP" depends="php$_phpver-common imagemagick" checkdepends="ghostscript-fonts" makedepends="php$_phpver-dev autoconf libtool imagemagick-dev pcre-dev" subpackages="$pkgname-dev" source="http://pecl.php.net/get/$_pkgreal-$pkgver.tgz fix-affineTransformImage-test.patch " builddir="$srcdir/$_pkgreal-$pkgver" build() { cd "$builddir" phpize$_phpver ./configure --prefix=/usr --with-php-config=php-config$_phpver make } check() { cd "$builddir" rm tests/150_Imagick_setregistry.phpt # no exception thrown rm tests/229_Tutorial_fxAnalyzeImage_case1.phpt # time out rm tests/236_Imagick_identify_basic.phpt # coredump https://bugs.php.net/bug.php?id=59444 make NO_INTERACTION=1 REPORT_EXIT_STATUS=1 test } package() { local confdir="$pkgdir/etc/php$_phpver/conf.d" cd "$builddir" make INSTALL_ROOT="$pkgdir" install mkdir -p "$confdir" echo "extension=$_pkgreal.so" > "$confdir"/$_pkgreal.ini } sha512sums="2cb2b856cf83a78d3542cdf7c69554dcc063a0541e9092b24e5e1fbd8928066a4a3de154049d0202c35addbc5055ccfbb5910ae92f2f13da80ddfc025340ddcd imagick-3.4.3.tgz f7c5507c349d1048b57d0316f5c7e83e539537e03d1573ee03d40590a2ae828b0c55ae136dcc5e2983ecaa75990e6d38fb2c01d95eef9d9c19da938acbd4f9b2 fix-affineTransformImage-test.patch"