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

Felix Yan felixonmars at archlinux.org
Mon May 24 11:29:36 UTC 2021


    Date: Monday, May 24, 2021 @ 11:29:36
  Author: felixonmars
Revision: 944519

archrelease: copy trunk to community-staging-x86_64

Added:
  perl-image-sane/repos/community-staging-x86_64/
  perl-image-sane/repos/community-staging-x86_64/PKGBUILD
    (from rev 944514, perl-image-sane/trunk/PKGBUILD)

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

Copied: perl-image-sane/repos/community-staging-x86_64/PKGBUILD (from rev 944514, perl-image-sane/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD	                        (rev 0)
+++ community-staging-x86_64/PKGBUILD	2021-05-24 11:29:36 UTC (rev 944519)
@@ -0,0 +1,44 @@
+# Maintainer: Muflone http://www.muflone.com/contacts/english/
+# Contributor: John D Jones III AKA jnbek <jnbek1972 -_AT_- g m a i l -_Dot_- com>
+# Contributor: Stefan Husmann <stefan-husmann at t-online.de>
+
+pkgname=perl-image-sane
+_perl_namespace=Image
+_perl_module=Sane
+pkgver=5
+pkgrel=3
+pkgdesc="Perl extension for the SANE (Scanner Access Now Easy) Project"
+arch=('x86_64')
+url="https://metacpan.org/release/${_perl_namespace}-${_perl_module}"
+license=('PerlArtistic' 'GPL')
+makedepends=('imagemagick')
+depends=('perl' 'sane' 'perl-extutils-depends' 'perl-extutils-pkgconfig' 'perl-readonly' 'perl-test-requires' 'perl-exception-class' 'perl-try-tiny')
+provides=('perl-sane')
+replaces=('perl-sane')
+conflicts=('perl-sane')
+source=("https://www.cpan.org/modules/by-module/${_perl_namespace}/${_perl_namespace}-${_perl_module}-${pkgver}.tar.gz")
+sha256sums=('229aa0e9f049efa760f3c2f6e61d9d539af43d8f764b50a6e03064b4729a35ff')
+options=('!emptydirs')
+
+build() {
+  cd "${_perl_namespace}-${_perl_module}-${pkgver}"
+  unset PERL5LIB PERL_MM_OPT PERL_MB_OPT PERL_LOCAL_LIB_ROOT
+  export PERL_MM_USE_DEFAULT=1 PERL_AUTOINSTALL=--skipdeps
+  perl Makefile.PL
+  make
+}
+
+check() {
+  cd "${_perl_namespace}-${_perl_module}-${pkgver}"
+  unset PERL5LIB PERL_MM_OPT PERL_MB_OPT PERL_LOCAL_LIB_ROOT
+  export PERL_MM_USE_DEFAULT=1
+  make test
+}
+
+package() {
+  cd "${_perl_namespace}-${_perl_module}-${pkgver}"
+  unset PERL5LIB PERL_MM_OPT PERL_MB_OPT PERL_LOCAL_LIB_ROOT
+  make pure_install INSTALLDIRS=vendor DESTDIR="${pkgdir}"
+  # Delete unuseful files
+  find "${pkgdir}" -name '.packlist' -delete
+}



More information about the arch-commits mailing list