diff options
author | Erich Eckner <git@eckner.net> | 2016-04-08 13:29:08 +0200 |
---|---|---|
committer | Erich Eckner <git@eckner.net> | 2016-04-11 11:29:19 +0200 |
commit | f6e563cd4d93253f5dff12e5b6e22879c26324cb (patch) | |
tree | 1e3cd3df8d4a7ea7959d25ab32ccdfe8c8111405 | |
parent | 2dd4907a0098dce2cdf9446a398df649e3d5b57d (diff) | |
download | archlinuxewe-f6e563cd4d93253f5dff12e5b6e22879c26324cb.tar.xz |
perl-math-spline neu
-rw-r--r-- | perl-math-spline/PKGBUILD | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/perl-math-spline/PKGBUILD b/perl-math-spline/PKGBUILD new file mode 100644 index 000000000..fa9b720de --- /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: |