[arch-commits] Commit in perl-switch/repos (2 files)
Evangelos Foutras
foutrelis at archlinux.org
Mon May 24 08:31:45 UTC 2021
Date: Monday, May 24, 2021 @ 08:31:45
Author: foutrelis
Revision: 943909
archrelease: copy trunk to community-staging-any
Added:
perl-switch/repos/community-staging-any/
perl-switch/repos/community-staging-any/PKGBUILD
(from rev 943908, perl-switch/trunk/PKGBUILD)
----------+
PKGBUILD | 41 +++++++++++++++++++++++++++++++++++++++++
1 file changed, 41 insertions(+)
Copied: perl-switch/repos/community-staging-any/PKGBUILD (from rev 943908, perl-switch/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD (rev 0)
+++ community-staging-any/PKGBUILD 2021-05-24 08:31:45 UTC (rev 943909)
@@ -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=7
+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