-
-
Save swiftgeek/2c787f43fbbae21c6f1d to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Contributor: Swift Geek <swiftgeek ÂŤatÂť gmail.com> | |
pkgname=perl-boost-geometry-utils | |
pkgver=0.13 | |
pkgrel=1 | |
pkgdesc="Boost::Geometry::Utils - Bindings for the Boost Geometry library" | |
arch=('any') | |
url="http://search.cpan.org/~aar/Boost-Geometry-Utils-${pkgver}/" | |
license=('GPL' 'PerlArtistic') | |
depends=('perl>=5.10.0' 'perl-module-build-withxspp' 'perl-extutils-typemaps-default' 'perl-extutils-xspp') | |
makedepends=() | |
provides=() | |
conflicts=() | |
replaces=() | |
backup=() | |
options=(!emptydirs) | |
install= | |
source=("http://search.cpan.org/CPAN/authors/id/A/AA/AAR/Boost-Geometry-Utils-${pkgver}.tar.gz") | |
md5sums=('a1bec0801b700f07dd80eb5a9f42604f') | |
prepare() { | |
export _src_dir="$srcdir/Boost-Geometry-Utils-$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 | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment