diff options
Diffstat (limited to 'testing/perl-test2-suite/APKBUILD')
-rw-r--r-- | testing/perl-test2-suite/APKBUILD | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/testing/perl-test2-suite/APKBUILD b/testing/perl-test2-suite/APKBUILD new file mode 100644 index 0000000000..15987daa27 --- /dev/null +++ b/testing/perl-test2-suite/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-test2-suite +_pkgreal=Test2-Suite +pkgver=0.000030 +pkgrel=0 +pkgdesc="Distribution with a rich set of tools built upon the Test2 framework." +url="http://search.cpan.org/dist/Test2-Suite/" +arch="noarch" +license="GPL PerlArtistic" +cpandepends="perl-test-simple" +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="8e806a3317b5d577e329fea99fed8a32 Test2-Suite-0.000030.tar.gz" +sha256sums="03f2411a8b1a85be8560c25d57f465c812174bc1c062ee79aeb194b018e6b751 Test2-Suite-0.000030.tar.gz" +sha512sums="7a7d638a5fd2a5c3ae905967b1bb96fd473e12f996ab7ceb98c83d509839c0407242775b1852138988a581d64de72bb31158b739d857dfd399c66d39d8af3bd3 Test2-Suite-0.000030.tar.gz" |