diff options
Diffstat (limited to 'testing/perl-test-simple')
-rw-r--r-- | testing/perl-test-simple/APKBUILD | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/testing/perl-test-simple/APKBUILD b/testing/perl-test-simple/APKBUILD new file mode 100644 index 0000000000..27d691c06a --- /dev/null +++ b/testing/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.302022 +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="f3f27f3c4fd642b51928045f04062080 Test-Simple-1.302022.tar.gz" +sha256sums="dfaa1bbbb57737de76ebe79ac6ee57b5fa3e901b57e56007ac99ec54d2e24326 Test-Simple-1.302022.tar.gz" +sha512sums="be849b9b099261ee463823261d8e05214c43ca48cbf5d41a60825a9c80c93f889fad8b1c256e2ac370aad0eb8b5aeb071566a51fc2786272503db32b6817d16d Test-Simple-1.302022.tar.gz" |