diff options
Diffstat (limited to 'testing')
-rw-r--r-- | testing/perl-sub-exporter/APKBUILD | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/testing/perl-sub-exporter/APKBUILD b/testing/perl-sub-exporter/APKBUILD new file mode 100644 index 0000000000..388aee2037 --- /dev/null +++ b/testing/perl-sub-exporter/APKBUILD @@ -0,0 +1,41 @@ +# Automatically generated by apkbuild-cpan, template 1 +# Contributor: Francesco Colista <francesco.colista@gmail.com> +# Maintainer: Francesco Colista <francesco.colista@gmail.com> +pkgname=perl-sub-exporter +_pkgreal=Sub-Exporter +pkgver=0.986 +pkgrel=0 +pkgdesc="a sophisticated exporter for custom-built routines" +url="http://search.cpan.org/dist/Sub-Exporter/" +arch="noarch" +license="GPL PerlArtistic" +cpandepends="perl-data-optlist perl-sub-install perl-params-util perl-test-pod" +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" + 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="bdfa41103f82ab8611af61fceed1271e Sub-Exporter-0.986.tar.gz" +sha256sums="a7456c3216552a40f66426764d8c81815dc80bc53e3fdf67bf9234e7830b9661 Sub-Exporter-0.986.tar.gz" +sha512sums="ae2637c629229a3e0c248f968ee1f6a1126bb31cc38447218685fb5f09eaa6ea3904992e573b2a3211d4d689b0527f2d45a6b62ffedccb8cba39a98714c75bad Sub-Exporter-0.986.tar.gz" |