aboutsummaryrefslogtreecommitdiffstats
path: root/community/php8-pecl-imagick/APKBUILD
blob: 6f5e72603ff9bb5eefedb01c5c0bed09e366d062 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
# Contributor: Valery Kartel <valery.kartel@gmail.com>
# Maintainer: Andy Postnikov <apostnikov@gmail.com>
pkgname=php8-pecl-imagick
_extname=imagick
pkgver=3.4.4
pkgrel=0
pkgdesc="PHP 8 extension provides a wrapper to the ImageMagick library - PECL"
url="https://pecl.php.net/package/imagick"
arch="all"
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"