# Contributor: viest # Maintainer: viest pkgname=php7-pecl-xlswriter _pkgreal=xlswriter pkgver=1.3.4 pkgrel=0 pkgdesc="A PHP Extension for creating and reader XLSX files. " url="https://pecl.php.net/package/xlswriter" arch="all !s390x !mips !mips64" # Test failure license="BSD-2-Clause" depends="php7-common" makedepends="php7-dev zlib-dev re2c" source="$pkgname-$pkgver.tar.gz::https://pecl.php.net/get/$_pkgreal-$pkgver.tgz" builddir="$srcdir"/$_pkgreal-$pkgver build() { phpize7 ./configure \ --enable-reader \ --prefix=/usr \ --with-php-config=/usr/bin/php-config7 make } check() { make NO_INTERACTION=1 REPORT_EXIT_STATUS=1 test } package() { make INSTALL_ROOT="$pkgdir/" install install -d "$pkgdir"/etc/php7/conf.d echo "extension=$_pkgreal.so" > "$pkgdir"/etc/php7/conf.d/$_pkgreal.ini } sha512sums="359735a55ab8750064a19bef4a0019d140df8107d1b401184810356d46b608d239866d003e30f689e0e12c1ba4731d72860b58c18eb333d6fd0219cac42f53fa php7-pecl-xlswriter-1.3.4.tar.gz"