diff options
Diffstat (limited to 'community/perl-test-simple/APKBUILD')
-rw-r--r-- | community/perl-test-simple/APKBUILD | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/community/perl-test-simple/APKBUILD b/community/perl-test-simple/APKBUILD new file mode 100644 index 0000000000..439395c150 --- /dev/null +++ b/community/perl-test-simple/APKBUILD @@ -0,0 +1,41 @@ +# Automatically generated by apkbuild-cpan, template 1 +# Contributor: Francesco Colista <fcolista@alpinelinux.org> +# Maintainer: Francesco Colista <fcolista@alpinelinux.org> +pkgname=perl-test-simple +_pkgreal=Test-Simple +pkgver=1.302052 +pkgrel=0 +pkgdesc="Basic utilities for writing tests." +url="http://search.cpan.org/dist/Test-Simple/" +arch="noarch" +license="GPL PerlArtistic" +cpandepends="" +cpanmakedepends=" " +depends="$cpandepends" +makedepends="perl-dev $cpanmakedepends" +subpackages="$pkgname-doc" +source="http://search.cpan.org/CPAN/authors/id/E/EX/EXODIST/$_pkgreal-$pkgver.tar.gz" + +_builddir="$srcdir/$_pkgreal-$pkgver" + +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 && make test +} + +package() { + cd "$_builddir" + make DESTDIR="$pkgdir" install || return 1 + find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete +} + +md5sums="2e39455e5b26c26abc1f0f2cef6e4fcc Test-Simple-1.302052.tar.gz" +sha256sums="d94b9c191db844a04ad5c4cf702b5bfd8ed8180cc6ae5ef1dee664b488317dcd Test-Simple-1.302052.tar.gz" +sha512sums="0e9b5b1f6dfdf31b6c0449445c2b372362c3139d480b60d6222ce24adeccf99e38116d2152abada0c708b3f38b22e6832560f647e23f0c8026dae6ff7d3be7a8 Test-Simple-1.302052.tar.gz" |