[arch-commits] Commit in perl-image-sane/repos (2 files)
Evangelos Foutras
foutrelis at archlinux.org
Wed Aug 1 12:11:04 UTC 2018
Date: Wednesday, August 1, 2018 @ 12:11:04
Author: foutrelis
Revision: 366684
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 366682, perl-image-sane/trunk/PKGBUILD)
----------+
PKGBUILD | 45 +++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 45 insertions(+)
Copied: perl-image-sane/repos/community-staging-x86_64/PKGBUILD (from rev 366682, perl-image-sane/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD (rev 0)
+++ community-staging-x86_64/PKGBUILD 2018-08-01 12:11:04 UTC (rev 366684)
@@ -0,0 +1,45 @@
+# $Id$
+# 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=0.14
+pkgrel=2
+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=('a4b027c9b7650291f1acb0eb93861a7fc45aef4e08f6726843f174fa113c8ba5')
+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