diff options
author | A. Wilcox <AWilcox@Wilcox-Tech.com> | 2018-10-02 18:49:00 +0000 |
---|---|---|
committer | A. Wilcox <AWilcox@Wilcox-Tech.com> | 2018-10-02 18:49:00 +0000 |
commit | 6dbee0588721af0ed0cd704a5ec75dd5252f9a0e (patch) | |
tree | f6e092e5e899738a08cca6d2909707006cc64355 /user/perl-scope-guard | |
parent | 5c443b0e069847b401663662a2154dc8ace103c8 (diff) | |
download | packages-6dbee0588721af0ed0cd704a5ec75dd5252f9a0e.tar.gz packages-6dbee0588721af0ed0cd704a5ec75dd5252f9a0e.tar.bz2 packages-6dbee0588721af0ed0cd704a5ec75dd5252f9a0e.tar.xz packages-6dbee0588721af0ed0cd704a5ec75dd5252f9a0e.zip |
user/perl-scope-guard: new package
Diffstat (limited to 'user/perl-scope-guard')
-rw-r--r-- | user/perl-scope-guard/APKBUILD | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/user/perl-scope-guard/APKBUILD b/user/perl-scope-guard/APKBUILD new file mode 100644 index 000000000..121aa0f5f --- /dev/null +++ b/user/perl-scope-guard/APKBUILD @@ -0,0 +1,33 @@ +# Contributor: A. Wilcox <awilfox@adelielinux.org> +# Maintainer: Adélie Perl Team <adelie-perl@lists.adelielinux.org> +pkgname=perl-scope-guard +pkgver=0.21 +pkgrel=0 +pkgdesc="Lexically-scoped Perl resource management" +url="https://metacpan.org/release/Scope-Guard" +arch="noarch" +license="Artistic-1.0-Perl" +depends="" +makedepends="perl-dev" +subpackages="$pkgname-doc" +source="https://cpan.metacpan.org/authors/id/C/CH/CHOCOLATE/Scope-Guard-$pkgver.tar.gz" +builddir="$srcdir/Scope-Guard-$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="65492e08ab79dc323649166e83ffc13c6f1fffaa9c60d581d8854dfe427a54a3c3c5e4d8b90308d4b1a31a1a54c7977b4e1d36fc9005c6e716c2361ce187fc9f Scope-Guard-0.21.tar.gz" |