diff options
author | Sebastian 'Swift Geek' Grzywna | 2017-02-28 02:02:32 +0100 |
---|---|---|
committer | Sebastian 'Swift Geek' Grzywna | 2017-02-28 02:02:32 +0100 |
commit | 5254c8504e9e3e2ace712fef7bd4f628cfda9cdb (patch) | |
tree | f40af005bd0f3a64108296293f2aae5f6e8d1da5 /PKGBUILD | |
parent | 49a9548a617c5aa000710e1ffde9b52459ea4cd2 (diff) | |
download | aur-perl-math-convexhull.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-${pkgver}.tar.gz") md5sums=('5d9225c5fadf5c71172cd88c81661d4d') +_src_dir='$srcdir/Math-ConvexHull-$pkgver' -prepare() { - export _src_dir="$srcdir/Math-ConvexHull-$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 |