From 09a46eb4d9dce4b2a8534271b98266eb49f0c4f0 Mon Sep 17 00:00:00 2001 From: "A. Wilcox" Date: Mon, 1 Oct 2018 21:52:01 +0000 Subject: user/perl-namespace-clean: new package --- user/perl-namespace-clean/APKBUILD | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 user/perl-namespace-clean/APKBUILD (limited to 'user') diff --git a/user/perl-namespace-clean/APKBUILD b/user/perl-namespace-clean/APKBUILD new file mode 100644 index 000000000..7c4d0ba43 --- /dev/null +++ b/user/perl-namespace-clean/APKBUILD @@ -0,0 +1,33 @@ +# Contributor: A. Wilcox +# Maintainer: Adélie Perl Team +pkgname=perl-namespace-clean +pkgver=0.27 +pkgrel=0 +pkgdesc="Keep imports and functions out of your Perl namespace" +url="https://metacpan.org/release/namespace-clean" +arch="noarch" +license="Artistic-1.0-Perl" +depends="perl-b-hooks-endofscope perl-package-stash" +makedepends="perl-dev" +subpackages="$pkgname-doc" +source="https://cpan.metacpan.org/authors/id/R/RI/RIBASUSHI/namespace-clean-$pkgver.tar.gz" +builddir="$srcdir/namespace-clean-$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="4422640656602e44c6d3675e55a0e699f8c0e07abbaf11f0b0905043f90e13bb95ee0eaa4c4a08c853296825dd8ef33c806e0a7c284a70448e35ac3354545744 namespace-clean-0.27.tar.gz" -- cgit v1.2.3-70-g09d2