summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorSebastian 'Swift Geek' Grzywna2017-02-28 02:15:19 +0100
committerSebastian 'Swift Geek' Grzywna2017-02-28 02:15:19 +0100
commit1dce9993a2252a9c57adbc87b6f63e9cc97bcad1 (patch)
treeea753a7ffc95c82c6d04dae47b01e6eead81fb18
parent706d01596ffc784a5cb2e1f88304846492556cbe (diff)
downloadaur-1dce9993a2252a9c57adbc87b6f63e9cc97bcad1.tar.gz
Fix use with makepkg -e and -o options
-rw-r--r--.SRCINFO2
-rw-r--r--PKGBUILD13
2 files changed, 7 insertions, 8 deletions
diff --git a/.SRCINFO b/.SRCINFO
index c36a8c7ca05..230309576b3 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,3 +1,5 @@
+# Generated by mksrcinfo v8
+# Tue Feb 28 01:15:19 UTC 2017
pkgbase = perl-math-clipper
pkgdesc = Math::Clipper - Polygon clipping in 2D
pkgver = 1.23
diff --git a/PKGBUILD b/PKGBUILD
index 4deed1c2d62..c4511ca1e83 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -16,29 +16,26 @@ options=(!emptydirs)
install=
source=("http://search.cpan.org/CPAN/authors/id/S/SM/SMUELLER/Math-Clipper-${pkgver}.tar.gz")
md5sums=('664d18d9813eeaf4959f2dc81a762a74')
+_src_dir='$srcdir/Math-Clipper-$pkgver'
-prepare() {
- export _src_dir="$srcdir/Math-Clipper-$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