aboutsummaryrefslogtreecommitdiffstats
path: root/community/perl-spreadsheet-xlsx/APKBUILD
blob: 9633b972b6cc90f08372b3dfa91c947c77b1a908 (plain)
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
# Automatically generated by apkbuild-cpan, template 2
# Contributor: Timothy Legge <timlegge@gmail.com>
# Maintainer: Timothy Legge <timlegge@gmail.com>
pkgname=perl-spreadsheet-xlsx
_pkgreal=Spreadsheet-XLSX
pkgver=0.15
pkgrel=1
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-spreadsheet-parseexcel perl-archive-zip perl-test-nowarnings"
makedepends="perl-dev"
subpackages="$pkgname-doc"
source="https://cpan.metacpan.org/authors/id/M/MI/MIKEB/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="dddab8b84796938a8ea1a07b11c0680f4abd91158e20c35acd5093ff5e6f731d9714e1ef53d8eeba1d2680ead2d4a38bc25fb2d6eed02a98b69d09a4caf86ca2  Spreadsheet-XLSX-0.15.tar.gz"