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

Felix Yan felixonmars at archlinux.org
Mon May 24 11:20:40 UTC 2021


    Date: Monday, May 24, 2021 @ 11:20:39
  Author: felixonmars
Revision: 944370

archrelease: copy trunk to community-staging-any

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

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

Copied: perl-sub-handlesvia/repos/community-staging-any/PKGBUILD (from rev 944369, perl-sub-handlesvia/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD	                        (rev 0)
+++ community-staging-any/PKGBUILD	2021-05-24 11:20:39 UTC (rev 944370)
@@ -0,0 +1,30 @@
+pkgname=perl-sub-handlesvia
+_cpanname=Sub-HandlesVia
+pkgver=0.016
+pkgrel=2
+pkgdesc='Perl extension for easily overriding subroutines'
+url='https://metacpan.org/release/Sub-HandlesVia'
+arch=('any')
+license=('PerlArtistic' 'GPL')
+depends=('perl' 'perl-moo' 'perl-mouse' 'perl-exporter-tiny' 'perl-type-tiny' 'perl-class-tiny')
+checkdepends=('perl-test-requires' 'perl-test-fatal')
+options=('!emptydirs')
+source=(https://search.cpan.org/CPAN/authors/id/T/TO/TOBYINK/${_cpanname}-${pkgver}.tar.gz)
+sha512sums=('91932d7c56e4fc1bb9e737282ee45ffdcc6d4143ee0307cbcbee9fb3b3953bd955b62bc20809cef61d4e643a4d246dbab062a636a46f951a93bdf2f22a1b04d2')
+
+build() {
+  cd ${_cpanname}-${pkgver}
+  export PERL_MM_USE_DEFAULT=1 PERL_AUTOINSTALL=--skipdeps
+  PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
+  make
+}
+
+check() {
+  cd ${_cpanname}-${pkgver}
+  make test
+}
+
+package() {
+  cd ${_cpanname}-${pkgver}
+  make DESTDIR="${pkgdir}" install
+}



More information about the arch-commits mailing list