# Contributor: Valery Kartel # Maintainer: Andy Postnikov pkgname=php8-pecl-imagick _extname=imagick pkgver=3.4.4 pkgrel=2 pkgdesc="PHP 8 extension provides a wrapper to the ImageMagick library - PECL" url="https://pecl.php.net/package/imagick" arch="all !x86" # https://gitlab.alpinelinux.org/alpine/aports/-/issues/12537 license="PHP-3.01" depends="php8-common imagemagick" checkdepends="ghostscript-fonts" makedepends="php8-dev imagemagick-dev" subpackages="$pkgname-dev" #source="php-pecl-$_extname-$pkgver.tgz::https://pecl.php.net/get/$_extname-$pkgver.tgz _githash="765649716faf3215b6ffca1b329e6a49aa42b24f" source="php-pecl-$_extname-$_githash.zip::https://github.com/Imagick/imagick/archive/$_githash.zip fix-affineTransformImage-test.patch " builddir="$srcdir/$_extname-$_githash" build() { phpize8 ./configure --prefix=/usr --with-php-config=php-config8 make } check() { make NO_INTERACTION=1 REPORT_EXIT_STATUS=1 test TESTS=--show-diff } package() { make INSTALL_ROOT="$pkgdir" install local _confdir="$pkgdir"/etc/php8/conf.d mkdir -p $_confdir echo "extension=$_extname" > $_confdir/$_extname.ini } sha512sums="43ac41f4c839af652528c2630fdf7a09dde29a8bcfa42abd74c71e20c9a0f57a504ff7686418e14f5d159b19bdbd6cb32f6a93972226714d3da565ae104f72ca php-pecl-imagick-765649716faf3215b6ffca1b329e6a49aa42b24f.zip f2b4e85b6dcf750ddbb09550df7d6d456cc1a6a5842066cc05c717b99121454d31642ed6ed0fa9a02ba33021211cea784a868cd18db5e5fae49f3897cec939cd fix-affineTransformImage-test.patch"