[arch-commits] Commit in perl-graphics-tiff/repos (2 files)

Felix Yan felixonmars at gemini.archlinux.org
Sun May 29 11:50:31 UTC 2022


    Date: Sunday, May 29, 2022 @ 11:50:31
  Author: felixonmars
Revision: 1214439

archrelease: copy trunk to community-staging-x86_64

Added:
  perl-graphics-tiff/repos/community-staging-x86_64/
  perl-graphics-tiff/repos/community-staging-x86_64/PKGBUILD
    (from rev 1214437, perl-graphics-tiff/trunk/PKGBUILD)

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

Copied: perl-graphics-tiff/repos/community-staging-x86_64/PKGBUILD (from rev 1214437, perl-graphics-tiff/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD	                        (rev 0)
+++ community-staging-x86_64/PKGBUILD	2022-05-29 11:50:31 UTC (rev 1214439)
@@ -0,0 +1,40 @@
+# Maintainer: Muflone http://www.muflone.com/contacts/english/
+
+pkgname=perl-graphics-tiff
+_perl_namespace=Graphics
+_perl_module=TIFF
+pkgver=12
+pkgrel=3
+pkgdesc="Extension for the libtiff library"
+arch=('x86_64')
+url="https://metacpan.org/release/${_perl_namespace}-${_perl_module}"
+license=('LGPL')
+makedepends=('perl-extutils-depends' 'perl-extutils-pkgconfig')
+depends=('perl' 'libtiff')
+checkdepends=('perl-readonly' 'perl-test-requires' 'perl-test-deep')
+source=("https://www.cpan.org/modules/by-module/${_perl_namespace}/${_perl_namespace}-${_perl_module}-${pkgver}.tar.gz")
+sha512sums=('f795e105a2d575d9c33d138b62f50cc3d6497fdc0b8d34dd8d8e89a27c91ee563a1f5e8a56c3ac48aa9f106abd7d94b66feb9ee43d990f1b5f7f78dda00dabb7')
+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