diff options
Diffstat (limited to 'testing/php81-pecl-xlswriter/APKBUILD')
-rw-r--r-- | testing/php81-pecl-xlswriter/APKBUILD | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/testing/php81-pecl-xlswriter/APKBUILD b/testing/php81-pecl-xlswriter/APKBUILD new file mode 100644 index 00000000000..d2cf48fb567 --- /dev/null +++ b/testing/php81-pecl-xlswriter/APKBUILD @@ -0,0 +1,38 @@ +# Contributor: viest <dev@service.viest.me> +# Maintainer: viest <dev@service.viest.me> +pkgname=php81-pecl-xlswriter +_extname=xlswriter +pkgver=1.5.5 +pkgrel=0 +pkgdesc="PHP 8.1 extension for creating and reader XLSX files - PECL" +url="https://pecl.php.net/package/xlswriter" +arch="all" +license="BSD-2-Clause" +depends="php81-common" +makedepends="php81-dev zlib-dev" +source="php-pecl-$_extname-$pkgver.tar.gz::https://pecl.php.net/get/$_extname-$pkgver.tgz" +builddir="$srcdir"/$_extname-$pkgver + +build() { + phpize81 + ./configure \ + --enable-reader \ + --prefix=/usr \ + --with-php-config=/usr/bin/php-config81 + make +} + +check() { + 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 + install -d $_confdir + echo "extension=$_extname" > $_confdir/$_extname.ini +} + +sha512sums=" +11b9799fb54ec916b2e2ffc78ec49ba7828d9486680a3c68391768b2df0623f92065a29377dea273ba55a29841e26c4618c9312dcf20ff08747b2c95ba956429 php-pecl-xlswriter-1.5.5.tar.gz +" |