diff options
author | Swift Geek | 2015-06-10 14:50:45 +0200 |
---|---|---|
committer | Swift Geek | 2015-06-10 14:50:45 +0200 |
commit | dbe0fd783c587938058a31201e854d15690202a1 (patch) | |
tree | e25c3297a0911ca61c83f41f20a92117bfdf1421 /PKGBUILD | |
download | aur-dbe0fd783c587938058a31201e854d15690202a1.tar.gz |
AUR4 import
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..743819a40467 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,46 @@ +# Contributor: Swift Geek <swiftgeek «at» gmail.com> +pkgname=perl-math-clipper +pkgver=1.23 +pkgrel=1 +pkgdesc="Math::Clipper - Polygon clipping in 2D" +arch=('any') +url="https://metacpan.org/release/Math-Clipper/" +license=('GPL' 'PerlArtistic') +depends=('perl>=5.10.0' 'perl-extutils-typemaps-default' 'perl-test-deep' 'perl-module-build-withxspp' 'perl-extutils-xspp') +makedepends=() +provides=() +conflicts=() +replaces=() +backup=() +options=(!emptydirs) +install= +source=("http://search.cpan.org/CPAN/authors/id/S/SM/SMUELLER/Math-Clipper-${pkgver}.tar.gz") +md5sums=('664d18d9813eeaf4959f2dc81a762a74') + +prepare() { + export _src_dir="$srcdir/Math-Clipper-$pkgver" + # 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" + /usr/bin/perl Build.PL + ./Build +} + +check () { + cd "$_src_dir" + ./Build test +} + +package () { + cd "$_src_dir" + ./Build install + + # remove perllocal.pod and .packlist + find "$pkgdir" -name .packlist -o -name perllocal.pod -delete +} |