From f6e563cd4d93253f5dff12e5b6e22879c26324cb Mon Sep 17 00:00:00 2001 From: Erich Eckner Date: Fri, 8 Apr 2016 13:29:08 +0200 Subject: perl-math-spline neu --- perl-math-spline/PKGBUILD | 46 ++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 46 insertions(+) create mode 100644 perl-math-spline/PKGBUILD (limited to 'perl-math-spline') diff --git a/perl-math-spline/PKGBUILD b/perl-math-spline/PKGBUILD new file mode 100644 index 00000000..fa9b720d --- /dev/null +++ b/perl-math-spline/PKGBUILD @@ -0,0 +1,46 @@ +pkgname='perl-math-spline' +pkgver='0.02' +pkgrel='1' +pkgdesc="Cubic Spline Interpolation of data" +arch=('x86_64' 'i686') +license=('PerlArtistic' 'GPL') +options=('!emptydirs') +depends=('perl') +makedepends=('perl-math-derivative') +url='http://search.mcpan.org/dist/Math-Spline' +source=("https://cpan.metacpan.org/authors/id/C/CH/CHORNY/Math-Spline-${pkgver}.tar.gz") +sha512sums=('089c013cedb5e2a87bd144e6f294a7257cb87763221ad7a9069aec7fdb41b6de9714b3a8f66a7e819c4c08739222808420c685ab02e5a1a881e38b086c945bce') +_distdir="Math-Spline-${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-70-g09d2