Skip to content
Snippets Groups Projects
PKGBUILD 1.22 KiB
Newer Older
Fabio Castelli's avatar
Fabio Castelli committed
# Maintainer: Muflone http://www.muflone.com/contacts/english/

pkgname=perl-graphics-tiff
Fabio Castelli's avatar
Fabio Castelli committed
pkgver=21
pkgrel=2
Fabio Castelli's avatar
Fabio Castelli committed
pkgdesc="Extension for the libtiff library"
arch=('x86_64')
Fabio Castelli's avatar
Fabio Castelli committed
url="https://metacpan.org/dist/Graphics-TIFF"
license=('GPL-1.0-or-later' 'Artistic-1.0-Perl')
Fabio Castelli's avatar
Fabio Castelli committed
makedepends=('perl-extutils-depends' 'perl-extutils-pkgconfig')
depends=('perl' 'libtiff')
Fabio Castelli's avatar
Fabio Castelli committed
checkdepends=('perl-readonly' 'perl-test-requires' 'perl-test-deep' 'imagemagick')
source=("${pkgname}-${pkgver}.tar.gz"::"https://github.com/carygravel/graphics-tiff/archive/refs/tags/${pkgver}.tar.gz")
sha256sums=('f22b5b5885a99b0df14aacda60491aae4b5faa2253687ee19c77ed799ab7b1de')
Fabio Castelli's avatar
Fabio Castelli committed
options=('!emptydirs')

build() {
Fabio Castelli's avatar
Fabio Castelli committed
  cd "${pkgname#perl-}-${pkgver}"
Fabio Castelli's avatar
Fabio Castelli committed
  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() {
Fabio Castelli's avatar
Fabio Castelli committed
  cd "${pkgname#perl-}-${pkgver}"
Fabio Castelli's avatar
Fabio Castelli committed
  unset PERL5LIB PERL_MM_OPT PERL_MB_OPT PERL_LOCAL_LIB_ROOT
  export PERL_MM_USE_DEFAULT=1
  make test
}

package() {
Fabio Castelli's avatar
Fabio Castelli committed
  cd "${pkgname#perl-}-${pkgver}"
Fabio Castelli's avatar
Fabio Castelli committed
  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
}