diff options
author | Sebastian 'Swift Geek' Grzywna | 2017-02-28 02:05:09 +0100 |
---|---|---|
committer | Sebastian 'Swift Geek' Grzywna | 2017-02-28 02:05:09 +0100 |
commit | ee053e68b80d7f7f966ba8b13f425c3333e195a4 (patch) | |
tree | 1191156a9e6472e76f8d2fd1a9bda4adc9a56488 /PKGBUILD | |
parent | c7ef7f5be30a357181cbe4d9e15c70368616132e (diff) | |
download | aur-perl-math-convexhull-monotonechain.tar.gz |
Fix use with makepkg -e and -o options
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 13 |
1 files changed, 5 insertions, 8 deletions
@@ -16,29 +16,26 @@ options=(!emptydirs) #install= source=("http://search.cpan.org/CPAN/authors/id/S/SM/SMUELLER/Math-ConvexHull-MonotoneChain-${pkgver}.tar.gz") md5sums=('eaac1a9350f914fea5bbce2029b95b57') +_src_dir='$srcdir/Math-ConvexHull-MonotoneChain-$pkgver' -prepare() { - export _src_dir="$srcdir/Math-ConvexHull-MonotoneChain-$pkgver" +build() { # Setting these env variables overwrites any command-line-options we don't want... 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() { - cd "$_src_dir" + eval cd "$_src_dir" /usr/bin/perl Makefile.PL make } check () { - cd "$_src_dir" + eval cd "$_src_dir" make test } package () { - cd "$_src_dir" + eval cd "$_src_dir" make install # remove perllocal.pod and .packlist |