desktop/perl-path-tiny/PKGBUILD
2018-07-30 22:29:15 +02:00

41 lines
901 B
Bash

pkgname=perl-path-tiny
pkgver=0.104
pkgrel=1
pkgdesc='File path utility'
arch=(any)
license=(PerlArtistic GPL)
options=(!emptydirs)
depends=('perl')
url=https://metacpan.org/release/Path-Tiny
source=("http://search.cpan.org/CPAN/authors/id/D/DA/DAGOLDEN/Path-Tiny-$pkgver.tar.gz")
md5sums=(17354181d9794df01be555b25114dd24)
sha512sums=(6574e48645ebb4f61d45c1365e8b63cfaac6423394ba08363cfd62d3d98d163bd333d997bf5f7fd0e37ff94fcb3a3e19871eb7499b295399f048fd6a4bd3c78c)
_ddir="Path-Tiny-$pkgver"
build()
(
cd "$srcdir/$_ddir"
export PERL_MM_USE_DEFAULT=1 PERL_AUTOINSTALL=--skipdeps
unset PERL5LIB PERL_MM_OPT
/usr/bin/perl Makefile.PL
make
)
check()
(
cd "$srcdir/$_ddir"
export PERL_MM_USE_DEFAULT=1
unset PERL5LIB
make test
)
package()
(
cd "$srcdir/$_ddir"
make install INSTALLDIRS=vendor DESTDIR="$pkgdir"
find "$pkgdir" -name .packlist -o -name perllocal.pod -delete
)