aboutsummaryrefslogtreecommitdiffstats
path: root/community/perl-spreadsheet-xlsx/APKBUILD
blob: c4a066e79202703c1fda8aabc967a93cabdfc75f (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
# Automatically generated by apkbuild-cpan, template 3
# Contributor: Timothy Legge <timlegge@gmail.com>
# Maintainer: Timothy Legge <timlegge@gmail.com>
pkgname=perl-spreadsheet-xlsx
#_pkgreal is used by apkbuild-cpan to find modules at MetaCpan
_pkgreal=Spreadsheet-XLSX
pkgver=0.17
pkgrel=0
pkgdesc="Perl extension for reading MS Excel 2007 files;"
url="https://metacpan.org/release/Spreadsheet-XLSX/"
arch="noarch"
license="GPL-1.0-or-later OR Artistic-1.0-Perl"
depends="perl perl-spreadsheet-parseexcel perl-archive-zip"
checkdepends="perl-test-nowarnings perl-test-warnings"
subpackages="$pkgname-doc"
source="https://cpan.metacpan.org/authors/id/A/AS/ASB/Spreadsheet-XLSX-$pkgver.tar.gz"
builddir="$srcdir/$_pkgreal-$pkgver"

build() {
	export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}')
	PERL_MM_USE_DEFAULT=1 perl -I. Makefile.PL INSTALLDIRS=vendor
	make
}

check() {
	export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}')
	make test
}

package() {
	make DESTDIR="$pkgdir" install
	find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete
}

sha512sums="
a59b7649cdc6a2cefc0bae7cc2f713611b1a5715895a4ca58dd374920fd876c34e5fae5b892c30fdc2a29c72c84f8bfe0e9d80405556bbeb050450e24d41d8ed  Spreadsheet-XLSX-0.17.tar.gz
"