diff options
author | Sebastian 'Swift Geek' Grzywna | 2017-02-28 02:07:58 +0100 |
---|---|---|
committer | Sebastian 'Swift Geek' Grzywna | 2017-02-28 02:07:58 +0100 |
commit | 9c3d2b102df86ede4ff22847b17d3bf1d845b706 (patch) | |
tree | 80982228d3ceb0182a6600cf4a7171684229ccd0 | |
parent | 49969257ba201f525aa6b4493bb4ffa48e072674 (diff) | |
download | aur-perl-math-geometry-voronoi.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:07:57 UTC 2017 pkgbase = perl-math-geometry-voronoi pkgdesc = Math::Geometry::Voronoi - compute Voronoi diagrams from sets of points pkgver = 1.3 @@ -16,29 +16,26 @@ options=(!emptydirs) install= source=("http://search.cpan.org/CPAN/authors/id/S/SA/SAMTREGAR/Math-Geometry-Voronoi-${pkgver}.tar.gz") md5sums=('44392be55ff56870aaff286dd735a5e2') +_src_dir='$srcdir/Math-Geometry-Voronoi-$pkgver' -prepare() { - export _src_dir="$srcdir/Math-Geometry-Voronoi-$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 |