[arch-commits] Commit in perl-sort-key/repos (staging-x86_64 staging-x86_64/PKGBUILD)

Evangelos Foutras foutrelis at archlinux.org
Sat May 25 08:57:49 UTC 2019


    Date: Saturday, May 25, 2019 @ 08:57:48
  Author: foutrelis
Revision: 353994

archrelease: copy trunk to staging-x86_64

Added:
  perl-sort-key/repos/staging-x86_64/
  perl-sort-key/repos/staging-x86_64/PKGBUILD
    (from rev 353993, perl-sort-key/trunk/PKGBUILD)

----------+
 PKGBUILD |   39 +++++++++++++++++++++++++++++++++++++++
 1 file changed, 39 insertions(+)

Copied: perl-sort-key/repos/staging-x86_64/PKGBUILD (from rev 353993, perl-sort-key/trunk/PKGBUILD)
===================================================================
--- staging-x86_64/PKGBUILD	                        (rev 0)
+++ staging-x86_64/PKGBUILD	2019-05-25 08:57:48 UTC (rev 353994)
@@ -0,0 +1,39 @@
+# Maintainer: Rémy Oudompheng <remy at archlinux.org>
+# Contributor: Piotr Rogoza <piotr.r.public at gmail dot com>
+# Contributor: Alessandro Sagratini <ale_sagra at hotmail dot com>
+
+pkgname=perl-sort-key
+pkgver=1.33
+pkgrel=6
+_author="S/SA/SALVA"
+_perlmod="Sort-Key"
+pkgdesc="Sort::Key - the fastest way to sort anything in Perl"
+arch=("x86_64")
+url=http://search.cpan.org/dist/sort-sort/
+license=('GPL' 'PerlArtistic')
+depends=(perl)
+options=(!emptydirs)
+source=("http://search.cpan.org/CPAN/authors/id/$_author/$_perlmod-$pkgver.tar.gz")
+sha256sums=('ed6a4ccfab094c9cd164f564024e98bd21d94f4312ccac4d6246d22b34081acf')
+
+build() {
+    cd "${srcdir}/${_perlmod}-${pkgver}"
+
+    # install module in vendor directories.
+    PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
+    make
+}
+
+check() {
+    cd "${srcdir}/${_perlmod}-${pkgver}"
+    unset PERL5LIB PERL_MM_OPT PERL_MB_OPT PERL_LOCAL_LIB_ROOT
+    export PERL_MM_USE_DEFAULT=1
+    make test
+}
+
+package() {
+    cd "${srcdir}/${_perlmod}-${pkgver}"
+    unset PERL5LIB PERL_MM_OPT PERL_MB_OPT PERL_LOCAL_LIB_ROOT
+    make install INSTALLDIRS=vendor DESTDIR="$pkgdir"
+}
+


More information about the arch-commits mailing list