From ebd49f3b60414ae9f072ca441154078bc596acc2 Mon Sep 17 00:00:00 2001 From: Andreas Grapentin Date: Tue, 23 Jan 2018 05:41:18 +0100 Subject: pcr/perl-math-bigint: added --- pcr/perl-math-bigint/PKGBUILD | 54 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 54 insertions(+) create mode 100644 pcr/perl-math-bigint/PKGBUILD diff --git a/pcr/perl-math-bigint/PKGBUILD b/pcr/perl-math-bigint/PKGBUILD new file mode 100644 index 000000000..b1cca42b8 --- /dev/null +++ b/pcr/perl-math-bigint/PKGBUILD @@ -0,0 +1,54 @@ +# Contributor (AUR): Trizen +# Generator (AUR): CPANPLUS::Dist::Arch 1.32 + +# parabola changes and rationale: +# no changes. + +pkgname='perl-math-bigint' +pkgver='1.999811' +pkgrel='1' +pkgdesc="Math::BigInt - Arbitrary size integer/float math package" +arch=('any') +license=('PerlArtistic' 'GPL') +options=('!emptydirs') +depends=('perl>=5.6.1') +makedepends=() +provides=('perl-math-bigfloat' 'perl-math-bigint-calc' 'perl-math-bigint-calcemu' 'perl-math-bigint-lib') + +url='https://metacpan.org/release/Math-BigInt' +source=("https://cpan.metacpan.org/authors/id/P/PJ/PJACKLAM/Math-BigInt-$pkgver.tar.gz") +md5sums=('95116cb6c22359f4d5d64abde083376d') +sha512sums=('2b9e524911c04cc0396702deae9f87091d075ce815ec3687f2071eb94f33f01f4a47ec28f57711083cfc3ce77f419c348dfce2866a567f054ab77ee4fc7f494f') +_distdir="Math-BigInt-$pkgver" + +build() { + ( export PERL_MM_USE_DEFAULT=1 PERL5LIB="" \ + PERL_AUTOINSTALL=--skipdeps \ + PERL_MM_OPT="INSTALLDIRS=vendor DESTDIR='$pkgdir'" \ + PERL_MB_OPT="--installdirs vendor --destdir '$pkgdir'" \ + MODULEBUILDRC=/dev/null + + cd "$srcdir/$_distdir" + /usr/bin/perl Makefile.PL + make + ) +} + +check() { + cd "$srcdir/$_distdir" + ( export PERL_MM_USE_DEFAULT=1 PERL5LIB="" + make test + ) +} + +package() { + cd "$srcdir/$_distdir" + make install + find "$pkgdir" -name .packlist -o -name perllocal.pod -delete +} + +# Local Variables: +# mode: shell-script +# sh-basic-offset: 2 +# End: +# vim:set ts=2 sw=2 et: -- cgit v1.2.3