Skip to content
Snippets Groups Projects
Commit f64fef47 authored by Caleb Maclennan's avatar Caleb Maclennan
Browse files

initial: perl-shell-command 0.06-3

Needed for upcomming vcsh package
parents
No related branches found
Tags 0.06-6
No related merge requests found
PKGBUILD 0 → 100644
# Maintainer: Caleb Maclennan< caleb@alerque.com>
# Contributor: Anton Leontiev <scileont@gmail.com>
_cpan=Shell-Command
pkgname=perl-${_cpan,,}
pkgver=0.06
pkgrel=3
pkgdesc='Perl module providing cross-platform functions emulating common shell commands'
arch=(any)
url="https://metacpan.org/release/$_cpan"
license=(GPL PerlArtistic)
depends=(perl)
options=(!emptydirs)
_archive="$_cpan-$pkgver"
source=("https://cpan.perl.org/modules/by-module/${_cpan%-*}/$_archive.tar.gz")
sha256sums=('f3e4deef577944be46fa7af5ac118ac2828911788b01bc76a74495355616ecd1')
build() {
cd "$_archive"
unset PERL5LIB PERL_MM_OPT PERL_LOCAL_LIB_ROOT
export PERL_MM_USE_DEFAULT=1 PERL_AUTOINSTALL=--skipdeps
perl Makefile.PL
make
}
check() {
cd "$_archive"
unset PERL5LIB PERL_MM_OPT PERL_LOCAL_LIB_ROOT
export PERL_MM_USE_DEFAULT=1
make test
}
package() {
cd "$_archive"
unset PERL5LIB PERL_MM_OPT PERL_LOCAL_LIB_ROOT
make install INSTALLDIRS=vendor DESTDIR="$pkgdir"
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment