From eb69f1c5602b8935ad357ed08c3c8729f6c4a6c1 Mon Sep 17 00:00:00 2001 From: Kiyoshi Aman Date: Sat, 26 Nov 2011 21:22:03 -0500 Subject: testing/perl-test-fatal: new APKBUILD --- testing/perl-test-fatal/APKBUILD | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 testing/perl-test-fatal/APKBUILD (limited to 'testing/perl-test-fatal') diff --git a/testing/perl-test-fatal/APKBUILD b/testing/perl-test-fatal/APKBUILD new file mode 100644 index 0000000000..4af1de9b3a --- /dev/null +++ b/testing/perl-test-fatal/APKBUILD @@ -0,0 +1,37 @@ +# Automatically generated by apkbuild-cpan, template 1 +# Contributor: Kiyoshi Aman +# Maintainer: Kiyoshi Aman +pkgname=perl-test-fatal +_pkgreal=Test-Fatal +pkgver=0.008 +pkgrel=0 +pkgdesc="incredibly simple helpers for testing code with exceptions" +url="http://search.cpan.org/dist/Test-Fatal/" +arch="noarch" +license="GPL PerlArtistic" +cpandepends="perl-try-tiny" +cpanmakedepends="" +depends="$cpandepends" +makedepends="perl-dev $cpanmakedepends" +subpackages="$pkgname-doc" +source="http://search.cpan.org/CPAN/authors/id/R/RJ/RJBS/$_pkgreal-$pkgver.tar.gz" + +_builddir="$srcdir/$_pkgreal-$pkgver" + +prepare() { + cd "$_builddir" + PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor +} + +build() { + cd "$_builddir" + make && make test +} + +package() { + cd "$_builddir" + make DESTDIR="$pkgdir" install || return 1 + find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete +} + +md5sums="201c94efbbcbd38b32e3cdc6752a6c07 Test-Fatal-0.008.tar.gz" -- cgit v1.2.3