void-packages/srcpkgs/php-imagick/template

32 lines
776 B
Bash

# Template file for 'php-imagick'
pkgname=php-imagick
version=3.4.4
revision=5
build_style=gnu-configure
configure_args="--with-imagick=${XBPS_CROSS_BASE}/usr"
hostmakedepends="php-devel autoconf pkg-config"
makedepends="php-devel pcre2-devel libmagick-devel"
depends="php>=7.4.3"
short_desc="Provides a PHP wrapper to the ImageMagick library"
maintainer="Alin Dobre <alin.dobre@outlook.com>"
license="PHP-3.01"
homepage="https://pecl.php.net/package/imagick"
distfiles="https://pecl.php.net/get/imagick-$version.tgz"
checksum=8dd5aa16465c218651fc8993e1faecd982e6a597870fd4b937e9ece02d567077
post_extract() {
mv imagick-$version/* .
}
pre_configure() {
phpize
}
pre_install() {
make_install_args="INSTALL_ROOT=$DESTDIR"
}
post_install() {
rm -r $DESTDIR/usr/include
}