diff options
author | Timothy Legge <timlegge@gmail.com> | 2019-04-20 00:23:59 +0000 |
---|---|---|
committer | Kevin Daudt <kdaudt@alpinelinux.org> | 2019-04-21 15:29:34 +0000 |
commit | bb087aaa948bc716abbcd3236be2cd350f502dee (patch) | |
tree | caf706693375bf4ba54d738c8bed07c0e7c66f3e /testing/perl-xml-generator | |
parent | 4cc4ec55388db0ae2ea7e50a1de02624f950cdc7 (diff) | |
download | aports-bb087aaa948bc716abbcd3236be2cd350f502dee.tar.bz2 aports-bb087aaa948bc716abbcd3236be2cd350f502dee.tar.xz |
testing/perl-xml-generator: new aport
Diffstat (limited to 'testing/perl-xml-generator')
-rw-r--r-- | testing/perl-xml-generator/APKBUILD | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/testing/perl-xml-generator/APKBUILD b/testing/perl-xml-generator/APKBUILD new file mode 100644 index 0000000000..e40d8b10d5 --- /dev/null +++ b/testing/perl-xml-generator/APKBUILD @@ -0,0 +1,33 @@ +# Automatically generated by apkbuild-cpan, template 2 +# Contributor: Timothy Legge <timlegge@gmail.com> +# Maintainer: Timothy Legge <timlegge@gmail.com> +pkgname=perl-xml-generator +_pkgreal=XML-Generator +pkgver=1.04 +pkgrel=0 +pkgdesc="Perl module for XML-Generator" +url="https://metacpan.org/release/XML-Generator/" +arch="noarch" +license="GPL PerlArtistic" +makedepends="perl-dev" +subpackages="$pkgname-doc" +source="https://cpan.metacpan.org/authors/id/B/BH/BHOLZMAN/XML-Generator-$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="ce151a2d575c9ec4cd42819a5d573bfc4985e0daa3945c310d61bb0a6376e4b8a0dcef5ce89e444795d99c9751719d45981675d1418ba6d729d152187688d552 XML-Generator-1.04.tar.gz" |