diff options
Diffstat (limited to 'system/perl-test-simple')
-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" |