# Automatically generated by apkbuild-cpan, template 2 # Contributor: Timothy Legge # Maintainer: Timothy Legge pkgname=perl-spreadsheet-xlsx _pkgreal=Spreadsheet-XLSX pkgver=0.15 pkgrel=0 pkgdesc="Perl extension for reading MS Excel 2007 files;" url="https://metacpan.org/release/Spreadsheet-XLSX/" arch="noarch" license="GPL PerlArtistic" cpandepends="perl-spreadsheet-parseexcel perl-archive-zip perl-test-nowarnings" depends="perl-spreadsheet-parseexcel $cpandepends" makedepends="perl-dev perl-spreadsheet-parseexcel" subpackages="$pkgname-doc" source="https://cpan.metacpan.org/authors/id/M/MI/MIKEB/Spreadsheet-XLSX-$pkgver.tar.gz" builddir="$srcdir/$_pkgreal-$pkgver" build() { cd "$builddir" export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}') PERL_MM_USE_DEFAULT=1 perl -I. Makefile.PL INSTALLDIRS=vendor make } check() { cd "$builddir" export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}') make test } package() { cd "$builddir" make DESTDIR="$pkgdir" install find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete } sha512sums="dddab8b84796938a8ea1a07b11c0680f4abd91158e20c35acd5093ff5e6f731d9714e1ef53d8eeba1d2680ead2d4a38bc25fb2d6eed02a98b69d09a4caf86ca2 Spreadsheet-XLSX-0.15.tar.gz"