From 384b2c2107a67f1c1663b4e52faa46ec410a5575 Mon Sep 17 00:00:00 2001 From: Andy Postnikov Date: Thu, 17 Feb 2022 16:24:48 +0200 Subject: [PATCH] testing/php81-pecl-vips: new aport --- testing/php81-pecl-vips/APKBUILD | 36 ++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 testing/php81-pecl-vips/APKBUILD diff --git a/testing/php81-pecl-vips/APKBUILD b/testing/php81-pecl-vips/APKBUILD new file mode 100644 index 00000000000..401ddacda75 --- /dev/null +++ b/testing/php81-pecl-vips/APKBUILD @@ -0,0 +1,36 @@ +# Contributor: TBK +# Maintainer: TBK +pkgname=php81-pecl-vips +_extname=vips +pkgver=1.0.13 +pkgrel=0 +pkgdesc="PHP 8.1 extension for interfacing with vips - PECL" +url="https://pecl.php.net/package/vips" +arch="all !ppc64le" # Limited by vips aport +license="MIT" +depends="php81-common" +makedepends="php81-dev vips-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 + make NO_INTERACTION=1 REPORT_EXIT_STATUS=1 SKIP_ONLINE_TESTS=1 test +} + +package() { + make INSTALL_ROOT="$pkgdir" install + local _confdir="$pkgdir"/etc/php81/conf.d + install -d $_confdir + echo "extension=$_extname" > $_confdir/$_extname.ini +} + +sha512sums=" +005660e3adb834e38a57b559411f4d33ec3efc5b2bc2e9afe182826618a7670530635ca684e73af2eb2c30ac4d3360653ba53fcfbcb835c712341bd6ed98bea3 php-pecl-vips-1.0.13.tgz +"