upgpkg: wordpress 6.2.1-1
[ArchLinux/community.git] / perl-shell-command / trunk / PKGBUILD
blob1cf8befb272d5d821800cf0ababa1d439216e16f
1 # Maintainer: Caleb Maclennan< caleb@alerque.com>
2 # Contributor: Anton Leontiev <scileont@gmail.com>
4 _cpan=Shell-Command
5 pkgname=perl-${_cpan,,}
6 pkgver=0.06
7 pkgrel=4
8 pkgdesc='Perl module providing cross-platform functions emulating common shell commands'
9 arch=(any)
10 url="https://metacpan.org/release/$_cpan"
11 license=(GPL PerlArtistic)
12 depends=(perl)
13 options=(!emptydirs)
14 _archive="$_cpan-$pkgver"
15 source=("https://cpan.perl.org/modules/by-module/${_cpan%-*}/$_archive.tar.gz")
16 sha256sums=('f3e4deef577944be46fa7af5ac118ac2828911788b01bc76a74495355616ecd1')
18 build() {
19         cd "$_archive"
20         unset PERL5LIB PERL_MM_OPT PERL_LOCAL_LIB_ROOT
21         export PERL_MM_USE_DEFAULT=1 PERL_AUTOINSTALL=--skipdeps
22         perl Makefile.PL
23         make
26 check() {
27         cd "$_archive"
28         unset PERL5LIB PERL_MM_OPT PERL_LOCAL_LIB_ROOT
29         export PERL_MM_USE_DEFAULT=1
30         make test
33 package() {
34         cd "$_archive"
35         unset PERL5LIB PERL_MM_OPT PERL_LOCAL_LIB_ROOT
36         make install INSTALLDIRS=vendor DESTDIR="$pkgdir"