summaryrefslogtreecommitdiff
path: root/user/perl-sub-install
diff options
context:
space:
mode:
authorMax Rees <maxcrees@me.com>2018-09-16 13:38:38 -0400
committerMax Rees <maxcrees@me.com>2018-09-16 13:46:44 -0400
commit8ec42f18a0130572356398bdd6ccdbb68e1f98f2 (patch)
tree8ddf228e04fb383ce37e2e77558da2b62cf25930 /user/perl-sub-install
parentf6d2219e7cef61ab30c3415b68bb80dec04cd9c5 (diff)
downloadpackages-8ec42f18a0130572356398bdd6ccdbb68e1f98f2.tar.gz
packages-8ec42f18a0130572356398bdd6ccdbb68e1f98f2.tar.bz2
packages-8ec42f18a0130572356398bdd6ccdbb68e1f98f2.tar.xz
packages-8ec42f18a0130572356398bdd6ccdbb68e1f98f2.zip
user/perl-sub-install: new package
Diffstat (limited to 'user/perl-sub-install')
-rw-r--r--user/perl-sub-install/APKBUILD34
1 files changed, 34 insertions, 0 deletions
diff --git a/user/perl-sub-install/APKBUILD b/user/perl-sub-install/APKBUILD
new file mode 100644
index 000000000..d0883e0cd
--- /dev/null
+++ b/user/perl-sub-install/APKBUILD
@@ -0,0 +1,34 @@
+# Contributor: Natanael Copa <ncopa@alpinelinux.org>
+# Maintainer: Adélie Perl Team <adelie-perl@lists.adelielinux.org>
+pkgname=perl-sub-install
+_pkgreal=Sub-Install
+pkgver=0.928
+pkgrel=0
+pkgdesc="Install subroutines into packages easily"
+url="https://metacpan.org/release/Sub-Install"
+arch="noarch"
+license="GPL-1.0+ OR Artistic-1.0-Perl"
+depends="perl"
+makedepends="perl-dev"
+subpackages="$pkgname-doc"
+source="https://cpan.metacpan.org/authors/id/R/RJ/RJBS/$_pkgreal-$pkgver.tar.gz"
+builddir="$srcdir/$_pkgreal-$pkgver"
+
+build() {
+ cd "$_builddir"
+ PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
+ make
+}
+
+check() {
+ cd "$builddir"
+ make test
+}
+
+package() {
+ cd "$builddir"
+ make DESTDIR="$pkgdir" install
+ find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete
+}
+
+sha512sums="3f25df9f5992075968830d4235e9f6520c526331b9180391e41483241d43253a61ad8dc381d77aaeb6c6fb841cfc5c097598e62abb46208894275c393a133ade Sub-Install-0.928.tar.gz"