diff options
author | Sebastian 'Swift Geek' Grzywna | 2017-02-28 02:15:19 +0100 |
---|---|---|
committer | Sebastian 'Swift Geek' Grzywna | 2017-02-28 02:15:19 +0100 |
commit | 1dce9993a2252a9c57adbc87b6f63e9cc97bcad1 (patch) | |
tree | ea753a7ffc95c82c6d04dae47b01e6eead81fb18 | |
parent | 706d01596ffc784a5cb2e1f88304846492556cbe (diff) | |
download | aur-1dce9993a2252a9c57adbc87b6f63e9cc97bcad1.tar.gz |
Fix use with makepkg -e and -o options
-rw-r--r-- | .SRCINFO | 2 | ||||
-rw-r--r-- | PKGBUILD | 13 |
2 files changed, 7 insertions, 8 deletions
@@ -1,3 +1,5 @@ +# Generated by mksrcinfo v8 +# Tue Feb 28 01:15:19 UTC 2017 pkgbase = perl-math-clipper pkgdesc = Math::Clipper - Polygon clipping in 2D pkgver = 1.23 @@ -16,29 +16,26 @@ options=(!emptydirs) install= source=("http://search.cpan.org/CPAN/authors/id/S/SM/SMUELLER/Math-Clipper-${pkgver}.tar.gz") md5sums=('664d18d9813eeaf4959f2dc81a762a74') +_src_dir='$srcdir/Math-Clipper-$pkgver' -prepare() { - export _src_dir="$srcdir/Math-Clipper-$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 Build.PL ./Build } check () { - cd "$_src_dir" + eval cd "$_src_dir" ./Build test } package () { - cd "$_src_dir" + eval cd "$_src_dir" ./Build install # remove perllocal.pod and .packlist |