diff options
author | Erich Eckner <git@eckner.net> | 2016-04-28 11:52:21 +0200 |
---|---|---|
committer | Erich Eckner <git@eckner.net> | 2016-04-28 11:52:21 +0200 |
commit | 8432ef7ed3191e47fbba8f57a48c10797234565f (patch) | |
tree | 0f0e11d91092b0464891828582827dc6fca63ad4 /perl-algorithm-c3 | |
parent | 4976b1921aea1fd0e2739e4aa8560ae138da7fb7 (diff) | |
download | archlinuxewe.git.save-8432ef7ed3191e47fbba8f57a48c10797234565f.tar.xz |
perl-algorithm neu
Diffstat (limited to 'perl-algorithm-c3')
-rw-r--r-- | perl-algorithm-c3/PKGBUILD | 50 |
1 files changed, 50 insertions, 0 deletions
diff --git a/perl-algorithm-c3/PKGBUILD b/perl-algorithm-c3/PKGBUILD new file mode 100644 index 00000000..6d544d5b --- /dev/null +++ b/perl-algorithm-c3/PKGBUILD @@ -0,0 +1,50 @@ +# Maintainer: Erich Eckner <arch at eckner dot net> + +pkgname='perl-algorithm-c3' +pkgver='0.10' +pkgrel='1' +pkgdesc='A module for merging hierarchies using the C3 algorithm' +arch=('any') +license=('PerlArtistic' 'GPL') +options=('!emptydirs') +depends=( + 'perl-carp' +) +checkdepends=() +url='https://metacpan.org/release/Algorithm-C3' +_distdir="Algorithm-C3-${pkgver}" +source=("https://cpan.metacpan.org/authors/id/H/HA/HAARG/${_distdir}.tar.gz") +sha512sums=('2ace81679e8ff2f3f3fbe8028741aef0833b1415a7cde0d1b20c90557889347685d1135029cd849324b6d40c435a80b228549bf669bbf43f9a1b2ed7075b605e') + +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" + 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: |