[arch-commits] Commit in perl-sub-quote/repos (2 files)

Felix Yan felixonmars at archlinux.org
Sat May 25 09:52:24 UTC 2019


    Date: Saturday, May 25, 2019 @ 09:52:23
  Author: felixonmars
Revision: 470218

archrelease: copy trunk to community-staging-any

Added:
  perl-sub-quote/repos/community-staging-any/
  perl-sub-quote/repos/community-staging-any/PKGBUILD
    (from rev 470217, perl-sub-quote/trunk/PKGBUILD)

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

Copied: perl-sub-quote/repos/community-staging-any/PKGBUILD (from rev 470217, perl-sub-quote/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD	                        (rev 0)
+++ community-staging-any/PKGBUILD	2019-05-25 09:52:23 UTC (rev 470218)
@@ -0,0 +1,39 @@
+pkgname=perl-sub-quote
+pkgver=2.005001
+pkgrel=2
+pkgdesc="efficient generation of subroutines via string eval"
+arch=('any')
+license=('PerlArtistic' 'GPL')
+options=('!emptydirs')
+depends=('perl')
+makedepends=('perl-test-fatal>=0.010')
+url='https://search.cpan.org/dist/Sub-Quote'
+source=("https://search.cpan.org/CPAN/authors/id/H/HA/HAARG/Sub-Quote-$pkgver.tar.gz")
+sha256sums=('d6ab4f0775def015367a05e02024b403f991b2be11d774f3d235fe7e9bdbba07')
+
+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/Sub-Quote-$pkgver"
+    perl Makefile.PL
+    make
+  )
+}
+
+check() {
+  cd "$srcdir/Sub-Quote-$pkgver"
+  ( export PERL_MM_USE_DEFAULT=1 PERL5LIB=""
+    make test
+  )
+}
+
+package() {
+  cd "$srcdir/Sub-Quote-$pkgver"
+  make install
+
+  find "$pkgdir" -name .packlist -o -name perllocal.pod -delete
+}



More information about the arch-commits mailing list