From 022fbe72230c9831d3672a2969fb6f42d541477b Mon Sep 17 00:00:00 2001 From: Erich Eckner Date: Tue, 5 Apr 2016 15:07:12 +0200 Subject: perl-heap neu --- perl-heap/PKGBUILD | 49 +++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 49 insertions(+) create mode 100644 perl-heap/PKGBUILD (limited to 'perl-heap/PKGBUILD') diff --git a/perl-heap/PKGBUILD b/perl-heap/PKGBUILD new file mode 100644 index 00000000..4e18e655 --- /dev/null +++ b/perl-heap/PKGBUILD @@ -0,0 +1,49 @@ +# Contributor: John D Jones III +# Generator : CPANPLUS::Dist::Arch 1.25 + +pkgname='perl-heap' +pkgver='0.80' +pkgrel='1' +pkgdesc="Perl extensions for keeping data partially sorted" +arch=('any') +license=('PerlArtistic' 'GPL') +options=('!emptydirs') +depends=('perl') +makedepends=() +url='http://search.cpan.org/dist/Heap' +source=("http://search.cpan.org/CPAN/authors/id/J/JM/JMM/Heap-${pkgver}.tar.gz") +sha512sums=('133e2668a90de8cea13302464188415fa30e4a0a85fb51af7409ff2e3466e33a6daf172b2466f046c5275db6ab19bb573e8b2d14acf616b110bdd60869865690') +_distdir="Heap-${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