diff options
author | A. Wilcox <AWilcox@Wilcox-Tech.com> | 2018-06-26 18:50:59 -0500 |
---|---|---|
committer | A. Wilcox <AWilcox@Wilcox-Tech.com> | 2018-06-26 18:51:16 -0500 |
commit | d321ef2e20b9538494535bf5003645df3f3278ff (patch) | |
tree | 7df52db88a2955c715a6c2a1a1c64fcab164300a /system/perl-test-simple/APKBUILD | |
parent | 53a0d32b0bebcfcb7102b8f1143abd97f692cb6c (diff) | |
download | packages-d321ef2e20b9538494535bf5003645df3f3278ff.tar.gz packages-d321ef2e20b9538494535bf5003645df3f3278ff.tar.bz2 packages-d321ef2e20b9538494535bf5003645df3f3278ff.tar.xz packages-d321ef2e20b9538494535bf5003645df3f3278ff.zip |
system/perl-test-simple: pull in for perl-test-nowarnings
Diffstat (limited to 'system/perl-test-simple/APKBUILD')
-rw-r--r-- | system/perl-test-simple/APKBUILD | 50 |
1 files changed, 50 insertions, 0 deletions
diff --git a/system/perl-test-simple/APKBUILD b/system/perl-test-simple/APKBUILD new file mode 100644 index 000000000..f47194d67 --- /dev/null +++ b/system/perl-test-simple/APKBUILD @@ -0,0 +1,50 @@ +# Automatically generated by apkbuild-cpan, template 2 +# Contributor: Francesco Colista <fcolista@alpinelinux.org> +# Maintainer: Adélie Perl Team <adelie-perl@lists.adelielinux.org> +pkgname=perl-test-simple +_pkgreal=Test-Simple +pkgver=1.302136 +pkgrel=0 +pkgdesc="Basic utilities for writing Perl tests" +url="http://search.cpan.org/dist/Test-Simple/" +arch="noarch" +license="GPL-2.0-only OR Artistic-1.0-Perl" +provides="perl-test-tester" +depends="" +makedepends="perl-dev" +subpackages="$pkgname-doc" +source="http://search.cpan.org/CPAN/authors/id/E/EX/EXODIST/$_pkgreal-$pkgver.tar.gz" +builddir="$srcdir/$_pkgreal-$pkgver" + +prepare() { + default_prepare + + 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 +} + +package() { + cd "$builddir" + make DESTDIR="$pkgdir" install + find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete +} + +check() { + cd "$builddir" + export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}') + make test +} + +doc() { + default_doc + replaces="perl-doc" +} + +sha512sums="80bc252a7d796ba6f43c61b50ea47ed12f391995d80a254a565627dc3d3728a4d8fa5395ca657c29630e19b3f22518c1c50774ce4e52abc52797c0adfdeac9aa Test-Simple-1.302136.tar.gz" |