aboutsummaryrefslogtreecommitdiffstats
path: root/testing/php7-pecl-xlswriter/APKBUILD
blob: a49db6e410c7015751924f1813000cf71ad6be7b (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
# Contributor: viest <dev@service.viest.me>
# Maintainer: viest <dev@service.viest.me>
pkgname=php7-pecl-xlswriter
_extname=xlswriter
pkgver=1.5.1
pkgrel=0
pkgdesc="A PHP 7 Extension for creating and reader XLSX files. "
url="https://pecl.php.net/package/xlswriter"
arch="all !mips !mips64" # Test failure
license="BSD-2-Clause"
depends="php7-common"
makedepends="php7-dev zlib-dev"
source="php-pecl-$_extname-$pkgver.tar.gz::https://pecl.php.net/get/$_extname-$pkgver.tgz"
builddir="$srcdir"/$_extname-$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 TESTS=--show-diff
}

package() {
	make INSTALL_ROOT="$pkgdir" install
	local _confdir="$pkgdir"/etc/php7/conf.d
	install -d $_confdir
	echo "extension=$_extname" > $_confdir/$_extname.ini
}

sha512sums="
1583a6a195e11d18d86984c332ddc118c34592c2bc3f8460039fcdfead3524516504825ae4c34c7760a0644d93eb9f16fb97649a066f40c5934d79f0ada24fcc  php-pecl-xlswriter-1.5.1.tar.gz
"