# Maintainer: Felix Yan # Contributor: François Charette pkgname=perl-cwd-guard pkgver=0.05 pkgrel=8 pkgdesc="Temporary changing working directory (chdir)" arch=('any') url="https://search.cpan.org/dist/Cwd-Guard/" license=('GPL' 'PerlArtistic') depends=('perl') makedepends=('perl-module-build') checkdepends=('perl-test-requires') options=('!emptydirs') source=("https://search.cpan.org/CPAN/authors/id/K/KA/KAZEBURO/Cwd-Guard-$pkgver.tar.gz") sha256sums=('7afc7ca2b9502e440241938ad97a3e7ebd550180ebd6142e1db394186b268e77') build() { cd "$srcdir/Cwd-Guard-$pkgver" perl Build.PL installdirs=vendor ./Build } check() { cd "$srcdir/Cwd-Guard-$pkgver" ./Build test } package() { cd "$srcdir/Cwd-Guard-$pkgver" ./Build install destdir="$pkgdir" }