diff options
author | Gergan Penkov | 2015-08-02 12:29:35 +0200 |
---|---|---|
committer | Gergan Penkov | 2015-08-02 12:29:35 +0200 |
commit | a3b7bb6b267693dbc1930697c27366d427b6c4d1 (patch) | |
tree | fa9336da56436597836c26b28a351c135bd88e8b /PKGBUILD | |
download | aur-a3b7bb6b267693dbc1930697c27366d427b6c4d1.tar.gz |
import from aur
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..8f05c3f2bee3 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,45 @@ +# Maintainer: Maxwell Pray a.k.a. Synthead <synthead@gmail.com> + +pkgname='perl-asa' +_cpanname='asa' +pkgver='1.03' +pkgrel='1' +pkgdesc='Lets your class/object say it works like something else.' +arch=('any') +license=('PerlArtistic' 'GPL') +options=('!emptydirs') +depends=('perl>=5.5.0') +url="http://search.cpan.org/~adamk/$_cpanname-$pkgver/" +source=("http://search.cpan.org/CPAN/authors/id/A/AD/ADAMK/$_cpanname-$pkgver.tar.gz") +md5sums=('ad3d82114f569892d65163e8623d50e4') + +# Function to change to the working directory and set +# environment variables to override undesired options. +prepareEnvironment() { + cd "$srcdir/$_cpanname-$pkgver" + export \ + PERL_MM_USE_DEFAULT=1 \ + PERL_AUTOINSTALL=--skipdeps \ + PERL_MM_OPT="INSTALLDIRS=vendor DESTDIR='$pkgdir'" \ + PERL_MB_OPT="--installdirs vendor --destdir '$pkgdir'" \ + MODULEBUILDRC=/dev/null +} + +build() { + prepareEnvironment + /usr/bin/perl Makefile.PL + make +} + +check() { + prepareEnvironment + make test +} + +package() { + prepareEnvironment + make install + + # Remove "perllocal.pod" and ".packlist". + find "$pkgdir" -name .packlist -o -name perllocal.pod -delete +} |