diff options
author | Jakub Jirutka <jakub@jirutka.cz> | 2016-06-12 16:46:18 +0200 |
---|---|---|
committer | Jakub Jirutka <jakub@jirutka.cz> | 2016-06-12 17:43:06 +0200 |
commit | fb922ad0b0559fad3d45bbb801e27f1e66fbdd29 (patch) | |
tree | 95cecf740e05faa04c8856d2498a7c100ffd3d87 /testing/perl-getopt-tabular | |
parent | 1192a785dbaa88255d59f4ea9ff21c63781d2fbc (diff) | |
download | aports-fb922ad0b0559fad3d45bbb801e27f1e66fbdd29.tar.bz2 aports-fb922ad0b0559fad3d45bbb801e27f1e66fbdd29.tar.xz |
testing/perl-getopt-tabular: new abuild
http://search.cpan.org/dist/Getopt-Tabular/
Table-driven argument parsing for Perl 5
Diffstat (limited to 'testing/perl-getopt-tabular')
-rw-r--r-- | testing/perl-getopt-tabular/APKBUILD | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/testing/perl-getopt-tabular/APKBUILD b/testing/perl-getopt-tabular/APKBUILD new file mode 100644 index 0000000000..8100e8c4eb --- /dev/null +++ b/testing/perl-getopt-tabular/APKBUILD @@ -0,0 +1,42 @@ +# Automatically generated by apkbuild-cpan, template 1 +# Contributor: Jakub Jirutka <jakub@jirutka.cz> +# Maintainer: Jakub Jirutka <jakub@jirutka.cz> +pkgname=perl-getopt-tabular +_pkgreal=Getopt-Tabular +pkgver=0.3 +pkgrel=0 +pkgdesc="Table-driven argument parsing for Perl 5" +url="http://search.cpan.org/dist/Getopt-Tabular/" +arch="noarch" +license="GPL PerlArtistic" +cpandepends="" +cpanmakedepends="" +depends="$cpandepends" +makedepends="perl-dev $cpanmakedepends" +subpackages="$pkgname-doc" +source="http://search.cpan.org/CPAN/authors/id/G/GW/GWARD/$_pkgreal-$pkgver.tar.gz" +builddir="$srcdir/$_pkgreal-$pkgver" + +prepare() { + default_prepare || return 1 + + cd "$builddir" + export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}') + PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor +} + +build() { + cd "$builddir" + export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}') + make && make test +} + +package() { + cd "$builddir" + make DESTDIR="$pkgdir" install || return 1 + find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete +} + +md5sums="5b24ed68318a749df3930d25b13dd436 Getopt-Tabular-0.3.tar.gz" +sha256sums="9bdf067633b5913127820f4e8035edc53d08372faace56ba6bfa00c968a25377 Getopt-Tabular-0.3.tar.gz" +sha512sums="a289d4861538ae542f7549364573cadd740538f73862d89dd49eaf6bed6f787ba2848246add171aed6aef4d7d36411d00bef70b76885aa948ce0e7fc8801652b Getopt-Tabular-0.3.tar.gz" |