1
0
Fork 0
mirror of https://gitlab.alpinelinux.org/alpine/aports.git synced 2025-07-15 20:25:17 +03:00
aports/testing/php82-pecl-vips/APKBUILD
2022-12-12 16:20:24 +00:00

38 lines
1 KiB
Text

# Contributor: TBK <alpine@jjtc.eu>
# Maintainer: TBK <alpine@jjtc.eu>
pkgname=php82-pecl-vips
_extname=vips
pkgver=1.0.13
pkgrel=0
pkgdesc="PHP 8.2 extension for interfacing with vips - PECL"
url="https://pecl.php.net/package/vips"
arch="all !ppc64le" # Limited by vips aport
license="MIT"
_phpv=82
_php=php$_phpv
depends="$_php-common"
makedepends="$_php-dev vips-dev"
source="php-pecl-$_extname-$pkgver.tgz::https://pecl.php.net/get/$_extname-$pkgver.tgz"
builddir="$srcdir/$_extname-$pkgver"
build() {
phpize$_phpv
./configure --prefix=/usr --with-php-config=php-config$_phpv
make
}
check() {
make NO_INTERACTION=1 REPORT_EXIT_STATUS=1 SKIP_ONLINE_TESTS=1 test
$_php -dextension=modules/$_extname.so --ri $_extname
}
package() {
make INSTALL_ROOT="$pkgdir" install
local _confdir="$pkgdir"/etc/$_php/conf.d
install -d $_confdir
echo "extension=$_extname" > $_confdir/$_extname.ini
}
sha512sums="
005660e3adb834e38a57b559411f4d33ec3efc5b2bc2e9afe182826618a7670530635ca684e73af2eb2c30ac4d3360653ba53fcfbcb835c712341bd6ed98bea3 php-pecl-vips-1.0.13.tgz
"