# Maintainer: Jesus E. pkgname=perl-guard pkgver=1.023 pkgrel=1 pkgdesc="Perl module for safe cleanup blocks" arch=('i686' 'x86_64') url='https://metacpan.org/release/Guard' license=('GPL-1') makedepends=('perl') options=('!emptydirs') source=("https://search.cpan.org/CPAN/authors/id/M/ML/MLEHMANN/Guard-${pkgver}.tar.gz" "LICENSE") sha512sums=('a991d6f9ebfadffbcabaccc45d964c40c46c7212c6de089f0c496040e151236c59cc7dd7076464f0ef96936f2c4cd462fbedf8e729d522f1090682eda976676f' 'c7e16e72ddf0df73ab28fd393f2e32c56a9a96938ee9ed302ab10870ce3e95d848b7cc93a894277a417a532937a6613a1174841f4904aac7c83828fd77daa2dc') build() { ( export PERL_MM_USE_DEFAULT=1 PERL5LIB="" \ PERL_AUTOINSTALL=--skipdeps \ PERL_MM_OPT="INSTALLDIRS=vendor" \ PERL_MB_OPT="--installdirs vendor" \ MODULEBUILDRC=/dev/null cd "${srcdir}/Guard-${pkgver}" /usr/bin/perl Makefile.PL make ) } package() { cd "${srcdir}/Guard-${pkgver}" make DESTDIR="$pkgdir" install install -Dm644 COPYING "${srcdir}/LICENSE" -t "${pkgdir}/usr/share/licenses/$pkgname" }