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

Evangelos Foutras foutrelis at archlinux.org
Sat Aug 26 11:35:41 UTC 2017


    Date: Saturday, August 26, 2017 @ 11:35:40
  Author: foutrelis
Revision: 253861

archrelease: copy trunk to community-staging-any

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

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

Copied: perl-switch/repos/community-staging-any/PKGBUILD (from rev 253860, perl-switch/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD	                        (rev 0)
+++ community-staging-any/PKGBUILD	2017-08-26 11:35:40 UTC (rev 253861)
@@ -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=3
+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