summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorSwift Geek2015-06-10 14:50:45 +0200
committerSwift Geek2015-06-10 14:50:45 +0200
commitdbe0fd783c587938058a31201e854d15690202a1 (patch)
treee25c3297a0911ca61c83f41f20a92117bfdf1421
downloadaur-dbe0fd783c587938058a31201e854d15690202a1.tar.gz
AUR4 import
-rw-r--r--.SRCINFO19
-rw-r--r--PKGBUILD46
2 files changed, 65 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..03ad8c6ce44
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,19 @@
+pkgbase = perl-math-clipper
+ pkgdesc = Math::Clipper - Polygon clipping in 2D
+ pkgver = 1.23
+ pkgrel = 1
+ url = https://metacpan.org/release/Math-Clipper/
+ arch = any
+ license = GPL
+ license = PerlArtistic
+ depends = perl>=5.10.0
+ depends = perl-extutils-typemaps-default
+ depends = perl-test-deep
+ depends = perl-module-build-withxspp
+ depends = perl-extutils-xspp
+ options = !emptydirs
+ source = http://search.cpan.org/CPAN/authors/id/S/SM/SMUELLER/Math-Clipper-1.23.tar.gz
+ md5sums = 664d18d9813eeaf4959f2dc81a762a74
+
+pkgname = perl-math-clipper
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..743819a4046
--- /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
+}