summaryrefslogblamecommitdiff
path: root/user/perl-scope-guard/APKBUILD
blob: a7c047af11cd5c225378f4ffd86642a02f6de540 (plain) (tree)
1
2
3
4
5
6
7


                                                                   



                               





                                                   

              
                          

                                                                                        

         




                                                                 









                                                                                                                                                                      
# Contributor: A. Wilcox <awilfox@adelielinux.org>
# Maintainer: Adélie Perl Team <adelie-perl@lists.adelielinux.org>
pkgname=perl-scope-guard
_pkgreal=Scope-Guard
_author=CHOCOLATE
_au=${_author%%"${_author#??}"}
_a=${_author%%"${_author#?}"}
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="perl"
makedepends=""
subpackages="$pkgname-doc"
source="https://cpan.metacpan.org/authors/id/$_a/$_au/$_author/$_pkgreal-$pkgver.tar.gz"
builddir="$srcdir/$_pkgreal-$pkgver"

build() {
	PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
	make
}

check() {
	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"