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

Evangelos Foutras foutrelis at archlinux.org
Wed Aug 1 09:12:57 UTC 2018


    Date: Wednesday, August 1, 2018 @ 09:12:57
  Author: foutrelis
Revision: 366314

archrelease: copy trunk to community-staging-any

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

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

Copied: perl-switch/repos/community-staging-any/PKGBUILD (from rev 366313, perl-switch/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD	                        (rev 0)
+++ community-staging-any/PKGBUILD	2018-08-01 09:12:57 UTC (rev 366314)
@@ -0,0 +1,42 @@
+# $Id$
+# 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=4
+pkgdesc="A switch statement for Perl"
+arch=('any')
+license=('PerlArtistic' 'GPL')
+options=('!emptydirs')
+depends=('perl')
+makedepends=()
+url='http://search.cpan.org/dist/Switch'
+source=(http://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