diff options
author | Britney Fransen <brfransen@gmail.com> | 2019-01-28 20:07:32 (GMT) |
---|---|---|
committer | Britney Fransen <brfransen@gmail.com> | 2019-01-28 20:07:32 (GMT) |
commit | aa9eeca99a31b2d2d1ac6e620e475d566d8956de (patch) | |
tree | 21e65e0b27da50e60cca3c1837456bdf2a71f11a | |
parent | 8859f21bc9852ef59b83f88903523e6c963f9865 (diff) | |
download | linhes_pkgbuild-aa9eeca99a31b2d2d1ac6e620e475d566d8956de.zip linhes_pkgbuild-aa9eeca99a31b2d2d1ac6e620e475d566d8956de.tar.gz linhes_pkgbuild-aa9eeca99a31b2d2d1ac6e620e475d566d8956de.tar.bz2 |
perl-sort-versions: initial inclusion
-rw-r--r-- | abs/core/perl_modules/perl-sort-versions/PKGBUILD | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/abs/core/perl_modules/perl-sort-versions/PKGBUILD b/abs/core/perl_modules/perl-sort-versions/PKGBUILD new file mode 100644 index 0000000..fd6f215 --- /dev/null +++ b/abs/core/perl_modules/perl-sort-versions/PKGBUILD @@ -0,0 +1,35 @@ +# Maintainer: +# Contributor: dracorp aka Piotr Rogoza <piotr dot r dot public at gmail.com> + +_author=N/NE/NEILB +_perlmod=Sort-Versions +pkgname=perl-sort-versions +pkgver=1.62 +pkgrel=4 +pkgdesc='Sort::Versions - a perl 5 module for sorting of revision-like numbers' +arch=('any') +url="http://search.cpan.org/dist/Sort-Versions/" +license=('GPL' 'PerlArtistic') +depends=('perl') +options=(!emptydirs) +source=("http://search.cpan.org/CPAN/authors/id/$_author/$_perlmod-$pkgver.tar.gz") +sha512sums=('b30dab96a5a31023af3ecee1857ae7bf5abc45b266294b47abb4f03c332b27825c1139d1a56bf0cfbd538487d28b3be167d83f9f5a93f079717b40157abe4d96') +unset PERL5LIB PERL_MM_OPT PERL_MB_OPT PERL_LOCAL_LIB_ROOT +export PERL_MM_USE_DEFAULT=1 +build(){ + cd "$srcdir/$_perlmod-$pkgver" + /usr/bin/perl Makefile.PL INSTALLDIRS=vendor + make +} + +check() { + cd $_perlmod-$pkgver + make test +} + +package() { + cd $_perlmod-$pkgver + make install DESTDIR="$pkgdir/" + # remove perllocal.pod and .packlist + find "$pkgdir" -name .packlist -o -name perllocal.pod -delete +} |