aboutsummaryrefslogtreecommitdiffstats
path: root/community/perl-sub-install
diff options
context:
space:
mode:
authorFrancesco Colista <fcolista@alpinelinux.org>2016-08-19 09:07:57 +0000
committerFrancesco Colista <fcolista@alpinelinux.org>2016-08-19 11:24:36 +0000
commit52403e13a4c4e2acac17682458b352562023abad (patch)
treeffd9d3241b32019c735e34c9144feceeec2cac66 /community/perl-sub-install
parentdf55cc76676a3f72c1a55e382efd48d7f9a99da5 (diff)
downloadaports-52403e13a4c4e2acac17682458b352562023abad.tar.bz2
aports-52403e13a4c4e2acac17682458b352562023abad.tar.xz
community/perl-sub-install: moved from testing
Diffstat (limited to 'community/perl-sub-install')
-rw-r--r--community/perl-sub-install/APKBUILD41
1 files changed, 41 insertions, 0 deletions
diff --git a/community/perl-sub-install/APKBUILD b/community/perl-sub-install/APKBUILD
new file mode 100644
index 0000000000..47171b686c
--- /dev/null
+++ b/community/perl-sub-install/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-sub-install
+_pkgreal=Sub-Install
+pkgver=0.928
+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="e1ce4f9cb6b2f6b8778b036c31afa5ab Sub-Install-0.928.tar.gz"
+sha256sums="61e567a7679588887b7b86d427bc476ea6d77fffe7e0d17d640f89007d98ef0f Sub-Install-0.928.tar.gz"
+sha512sums="3f25df9f5992075968830d4235e9f6520c526331b9180391e41483241d43253a61ad8dc381d77aaeb6c6fb841cfc5c097598e62abb46208894275c393a133ade Sub-Install-0.928.tar.gz"