Newer
Older
# Maintainer: Muflone http://www.muflone.com/contacts/english/
pkgname=perl-graphics-tiff
pkgdesc="Extension for the libtiff library"
arch=('x86_64')
url="https://metacpan.org/dist/Graphics-TIFF"
license=('GPL-1.0-or-later' 'Artistic-1.0-Perl')
makedepends=('perl-extutils-depends' 'perl-extutils-pkgconfig')
depends=('perl' 'libtiff')
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')
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() {
unset PERL5LIB PERL_MM_OPT PERL_MB_OPT PERL_LOCAL_LIB_ROOT
export PERL_MM_USE_DEFAULT=1
make test
}
package() {
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
}