diff options
author | Sebastian 'Swift Geek' Grzywna | 2017-02-28 01:56:39 +0100 |
---|---|---|
committer | Sebastian 'Swift Geek' Grzywna | 2017-02-28 01:56:39 +0100 |
commit | e7d348333fbe1b2e0494b0c9f04e5e326e72371a (patch) | |
tree | 7c4a1f402ef80f08a8dde9fbdce138a53a960134 | |
parent | f66dae7c458c6ae6e594a775a2dcec342e2cb3d0 (diff) | |
download | aur-e7d348333fbe1b2e0494b0c9f04e5e326e72371a.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 00:56:39 UTC 2017 pkgbase = perl-boost-geometry-utils pkgdesc = Boost::Geometry::Utils - Bindings for the Boost Geometry library pkgver = 0.15 @@ -16,29 +16,26 @@ options=(!emptydirs) install= source=("http://search.cpan.org/CPAN/authors/id/A/AA/AAR/Boost-Geometry-Utils-${pkgver}.tar.gz") md5sums=('14d705f8efda8db81e118aa8c8a21bed') +_src_dir='$srcdir/Boost-Geometry-Utils-$pkgver' -prepare() { - export _src_dir="$srcdir/Boost-Geometry-Utils-$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 |