# Maintainer: Florian Pritz # Contributor: tobias # Contributor: Tobias Kieslich # Contributor: Firmicus pkgname=perl-image-exiftool _srcname=Image-ExifTool pkgver=12.60 pkgrel=1 pkgdesc="Reader and rewriter of EXIF informations that supports raw files" arch=('any') url="https://search.cpan.org/perldoc?exiftool" license=('GPL') depends=('perl') optdepends=('perl-archive-zip: Support for ZIP-files, including EPUB') provides=("perl-exiftool=$pkgver") replaces=("perl-exiftool") options=('!emptydirs') source=(https://exiftool.org/${_srcname}-$pkgver.tar.gz) sha256sums=('73dbe06d004c31082a56e78d7f246f2bb0002fbb1835447bc32a2b076f3d32ad') build() { cd "${srcdir}/${_srcname}-${pkgver}" # install module in vendor directories. perl Makefile.PL INSTALLDIRS=vendor make } check() { cd "${srcdir}/${_srcname}-${pkgver}" make test } package() { cd "${srcdir}/${_srcname}-${pkgver}" make DESTDIR="${pkgdir}" install install -dm755 "$pkgdir/usr/share/$pkgname" cp -r fmt_files config_files arg_files "$pkgdir/usr/share/$pkgname" }