# Automatically generated by apkbuild-cpan, template 3
# Contributor: Timothy Legge <timlegge@gmail.com>
# Maintainer: Timothy Legge <timlegge@gmail.com>
pkgname=perl-image-info
#_pkgreal is used by apkbuild-cpan to find modules at MetaCpan
_pkgreal=Image-Info
pkgver=1.44
pkgrel=0
pkgdesc="Extract meta information from image files"
url="https://metacpan.org/release/Image-Info/"
arch="noarch"
license="GPL-1.0-or-later OR Artistic-1.0-Perl"
depends="perl"
subpackages="$pkgname-doc"
source="https://cpan.metacpan.org/authors/id/S/SR/SREZIC/Image-Info-$pkgver.tar.gz"
builddir="$srcdir/$_pkgreal-$pkgver"

build() {
	export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}')
	PERL_MM_USE_DEFAULT=1 perl -I. Makefile.PL INSTALLDIRS=vendor
	make
}

check() {
	export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}')
	make test
}

package() {
	make DESTDIR="$pkgdir" install
	find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete
}

sha512sums="
893304f4b6ced6752a5588e458eea90ac2e843637eb35379beaed389772bfd5fc2611f4d4a7726454c1c8ad34c75cc6cd696303182ac83597c322619093fe1cc  Image-Info-1.44.tar.gz
"
