From 8ec42f18a0130572356398bdd6ccdbb68e1f98f2 Mon Sep 17 00:00:00 2001 From: Max Rees Date: Sun, 16 Sep 2018 13:38:38 -0400 Subject: user/perl-sub-install: new package --- user/perl-sub-install/APKBUILD | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 user/perl-sub-install/APKBUILD (limited to 'user/perl-sub-install/APKBUILD') 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 +# Maintainer: Adélie Perl Team +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" -- cgit v1.2.3-70-g09d2