# Contributor: Natanael Copa # Maintainer: Natanael Copa pkgname=perl-scope-guard pkgver=0.21 pkgrel=4 pkgdesc="Scope::Guard perl module" url="https://metacpan.org/release/Scope-Guard/" arch="noarch" license="GPL-2.0 or Artistic" depends="perl" subpackages="$pkgname-doc" source="https://cpan.metacpan.org/authors/id/C/CH/CHOCOLATE/Scope-Guard-$pkgver.tar.gz" builddir="$srcdir"/Scope-Guard-$pkgver build() { PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor make } check() { make test } package() { make DESTDIR="$pkgdir" install find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete } sha512sums=" 65492e08ab79dc323649166e83ffc13c6f1fffaa9c60d581d8854dfe427a54a3c3c5e4d8b90308d4b1a31a1a54c7977b4e1d36fc9005c6e716c2361ce187fc9f Scope-Guard-0.21.tar.gz "