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

Evangelos Foutras foutrelis at archlinux.org
Sat May 25 09:15:19 UTC 2019


    Date: Saturday, May 25, 2019 @ 09:15:18
  Author: foutrelis
Revision: 470071

archrelease: copy trunk to community-staging-any

Added:
  perl-switch/repos/community-staging-any/
  perl-switch/repos/community-staging-any/PKGBUILD
    (from rev 470070, perl-switch/trunk/PKGBUILD)

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

Copied: perl-switch/repos/community-staging-any/PKGBUILD (from rev 470070, perl-switch/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD	                        (rev 0)
+++ community-staging-any/PKGBUILD	2019-05-25 09:15:18 UTC (rev 470071)
@@ -0,0 +1,41 @@
+# Maintainer: Sergej Pupykin <pupykin.s+arch at gmail.com>
+# CPAN Name  : Switch
+# Contributor: AUR Perl <aurperl at juster.info>
+# Generator  : CPANPLUS::Dist::Arch 1.12
+
+pkgname='perl-switch'
+pkgver=2.17
+pkgrel=5
+pkgdesc="A switch statement for Perl"
+arch=('any')
+license=('PerlArtistic' 'GPL')
+options=('!emptydirs')
+depends=('perl')
+makedepends=()
+url='https://search.cpan.org/dist/Switch'
+source=(https://search.cpan.org/CPAN/authors/id/C/CH/CHORNY/Switch-$pkgver.tar.gz)
+md5sums=('34e2b6dac0a43384505b4e036633cff0')
+
+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"/Switch-$pkgver
+  perl Makefile.PL
+  make
+}
+
+check() {
+  cd "$srcdir"/Switch-$pkgver
+  export PERL_MM_USE_DEFAULT=1 PERL5LIB=""
+  make test
+}
+
+package() {
+  cd "$srcdir"/Switch-$pkgver
+  make install
+  find "$pkgdir" -name .packlist -o -name perllocal.pod -delete
+}


More information about the arch-commits mailing list