Date: Sunday, April 1, 2018 @ 23:21:30 Author: muflone Revision: 313771
archrelease: copy trunk to community-testing-x86_64 Added: perl-image-sane/repos/community-testing-x86_64/ perl-image-sane/repos/community-testing-x86_64/PKGBUILD (from rev 313770, perl-image-sane/trunk/PKGBUILD) ----------+ PKGBUILD | 45 +++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 45 insertions(+) Copied: perl-image-sane/repos/community-testing-x86_64/PKGBUILD (from rev 313770, perl-image-sane/trunk/PKGBUILD) =================================================================== --- community-testing-x86_64/PKGBUILD (rev 0) +++ community-testing-x86_64/PKGBUILD 2018-04-01 23:21:30 UTC (rev 313771) @@ -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-husm...@t-online.de> + +pkgname=perl-image-sane +_perl_namespace=Image +_perl_module=Sane +pkgver=0.14 +pkgrel=1 +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 +}