diff options
author | Sebastian 'Swift Geek' Grzywna | 2017-02-28 02:27:27 +0100 |
---|---|---|
committer | Sebastian 'Swift Geek' Grzywna | 2017-02-28 02:27:27 +0100 |
commit | 457c051972408023fbd9f2f1fc7330104320fb42 (patch) | |
tree | 845d7630041054dd8c3f9aab92e9fe83ab3cb2d2 | |
parent | 9fde225a5cc7f0337ba7358bf9654ce186f85d1d (diff) | |
download | aur-457c051972408023fbd9f2f1fc7330104320fb42.tar.gz |
Fix use with makepkg -e and -o options
-rw-r--r-- | .SRCINFO | 2 | ||||
-rw-r--r-- | PKGBUILD | 13 |
2 files changed, 6 insertions, 9 deletions
@@ -1,5 +1,5 @@ # Generated by mksrcinfo v8 -# Mon Oct 31 01:48:10 UTC 2016 +# Tue Feb 28 01:27:27 UTC 2017 pkgbase = perl-extutils-makemaker-aur pkgdesc = ExtUtils::MakeMaker - Create a module Makefile pkgver = 7.24 @@ -16,29 +16,26 @@ options=(!emptydirs) install= source=("http://www.cpan.org/authors/id/B/BI/BINGOS/ExtUtils-MakeMaker-${pkgver}.tar.gz") md5sums=('15c67ba2ea2c9e20a3d976b738adb113') +_src_dir='$srcdir/ExtUtils-MakeMaker-$pkgver' -prepare() { - export _src_dir="$srcdir/ExtUtils-MakeMaker-$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 |