diff options
-rw-r--r-- | .SRCINFO | 2 | ||||
-rw-r--r-- | PKGBUILD | 15 |
2 files changed, 7 insertions, 10 deletions
@@ -1,5 +1,5 @@ # Generated by mksrcinfo v8 -# Sat Feb 25 06:43:49 UTC 2017 +# Tue Feb 28 01:42:28 UTC 2017 pkgbase = perl-math-planepath pkgdesc = Math::PlanePath -- points on a path through the 2-D plane pkgver = 124 @@ -16,30 +16,27 @@ options=(!emptydirs) install= source=("http://search.cpan.org/CPAN/authors/id/K/KR/KRYDE/Math-PlanePath-${pkgver}.tar.gz") md5sums=('88d173b046906876c53950af14a56b9c') +_src_dir='$srcdir/Math-PlanePath-$pkgver' -prepare() { - export _src_dir="$srcdir/Math-PlanePath-$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" - echo "$_src_dir" + eval cd "$_src_dir" + pwd make install # remove perllocal.pod and .packlist |