diff options
author | awe00 | 2017-10-01 00:43:31 +0200 |
---|---|---|
committer | awe00 | 2017-10-01 00:43:31 +0200 |
commit | 81727d8b041e64c393358062c2370edae3f5888b (patch) | |
tree | ec800d8b96dc7fb0f2b08a2256c0d26073f45575 /PKGBUILD | |
download | aur-perl-check-isa.tar.gz |
initial commit
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..9a99066c69c5 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,35 @@ +# Maintainer: awe00 < awe00 AT hotmail DOT fr> +pkgname=perl-check-isa +pkgver=0.09 +pkgrel=1 +pkgdesc='This module provides several functions to assist in testing whether a value is an object, and if so asking about its class.' +_dist=Check-ISA +arch=('any') +url="https://metacpan.org/release/$_dist" +license=('GPL' 'PerlArtistic') +depends=(perl) +makedepends=() +options=('!emptydirs' purge) +source=("http://search.cpan.org/CPAN/authors/id/M/MA/MANWAR/$_dist-$pkgver.tar.gz") +md5sums=("SKIP") + +build() { + cd "$srcdir/$_dist-$pkgver" + unset PERL5LIB PERL_MM_OPT PERL_LOCAL_LIB_ROOT + export PERL_MM_USE_DEFAULT=1 PERL_AUTOINSTALL=--skipdeps + /usr/bin/perl Makefile.PL + make +} + +check() { + cd "$srcdir/$_dist-$pkgver" + unset PERL5LIB PERL_MM_OPT PERL_LOCAL_LIB_ROOT + export PERL_MM_USE_DEFAULT=1 + make test +} + +package() { + cd "$srcdir/$_dist-$pkgver" + unset PERL5LIB PERL_MM_OPT PERL_LOCAL_LIB_ROOT + make install INSTALLDIRS=vendor DESTDIR="$pkgdir" +} |