aboutsummaryrefslogtreecommitdiffstats
path: root/testing/perl-sub-install/APKBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'testing/perl-sub-install/APKBUILD')
-rw-r--r--testing/perl-sub-install/APKBUILD41
1 files changed, 41 insertions, 0 deletions
diff --git a/testing/perl-sub-install/APKBUILD b/testing/perl-sub-install/APKBUILD
new file mode 100644
index 0000000000..d7abff7aad
--- /dev/null
+++ b/testing/perl-sub-install/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-install
+_pkgreal=Sub-Install
+pkgver=0.926
+pkgrel=0
+pkgdesc="install subroutines into packages easily"
+url="http://search.cpan.org/dist/Sub-Install/"
+arch="noarch"
+license="GPL PerlArtistic"
+cpandepends=""
+cpanmakedepends="perl-test-pod perl-test-pod-coverage"
+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="89a7f82dd840bc2401f281b5f24732b9 Sub-Install-0.926.tar.gz"
+sha256sums="acb2496643784976fe8edebc7b412e9a93f6f0825631f5bd9186c810aed1763e Sub-Install-0.926.tar.gz"
+sha512sums="c536e1ace79ce8c6bd4a6e580cc2e181671b54f07cef231a84094c854779aee556de4b2ff0a95f0e6a8aca87f77a6e19d148071a48fe5c6e9c0ca15314f0c9cc Sub-Install-0.926.tar.gz"