aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--testing/php81-pecl-imagick/APKBUILD43
1 files changed, 43 insertions, 0 deletions
diff --git a/testing/php81-pecl-imagick/APKBUILD b/testing/php81-pecl-imagick/APKBUILD
new file mode 100644
index 0000000000..a6eef02648
--- /dev/null
+++ b/testing/php81-pecl-imagick/APKBUILD
@@ -0,0 +1,43 @@
+# Contributor: Valery Kartel <valery.kartel@gmail.com>
+# Maintainer: Andy Postnikov <apostnikov@gmail.com>
+pkgname=php81-pecl-imagick
+_extname=imagick
+pkgver=3.6.0_rc1
+_pkgver=${pkgver/_rc/RC}
+pkgrel=0
+pkgdesc="PHP 8.1 extension provides a wrapper to the ImageMagick library - PECL"
+url="https://pecl.php.net/package/imagick"
+arch="all"
+license="PHP-3.01"
+depends="php81-common imagemagick"
+checkdepends="ghostscript-fonts"
+makedepends="php81-dev imagemagick-dev"
+subpackages="$pkgname-dev"
+source="php-pecl-$_extname-$_pkgver.tgz::https://pecl.php.net/get/$_extname-$_pkgver.tgz"
+builddir="$srcdir/$_extname-$_pkgver"
+
+build() {
+ phpize81
+ ./configure --prefix=/usr --with-php-config=php-config81
+ make
+}
+
+check() {
+ php81 -dextension=modules/$_extname.so --ri $_extname
+
+ # see https://gitlab.alpinelinux.org/alpine/aports/-/issues/12537
+ [ "$CARCH" = x86 ] && rm -f tests/166_Imagick_waveImage_basic.phpt
+ make NO_INTERACTION=1 REPORT_EXIT_STATUS=1 test TESTS=--show-diff
+}
+
+package() {
+ make INSTALL_ROOT="$pkgdir" install
+
+ local _confdir="$pkgdir"/etc/php81/conf.d
+ mkdir -p $_confdir
+ echo "extension=$_extname" > $_confdir/$_extname.ini
+}
+
+sha512sums="
+ac73162d350a7f740b8df2d2bfa4ea8a87808d6c2e4c96bb6cd222792aeff04d1bad728f25d7c8a44eb918c70d06cfdb4f6ace730d6bc350c18ca00fb08510c4 php-pecl-imagick-3.6.0RC1.tgz
+"