# Automatically generated by apkbuild-cpan, template 3 # Contributor: Timothy Legge # Maintainer: Timothy Legge pkgname=perl-file-mmagic #_pkgreal is used by apkbuild-cpan to find modules at MetaCpan _pkgreal=File-MMagic pkgver=1.30 pkgrel=2 pkgdesc="Guess file type from contents" url="https://metacpan.org/release/File-MMagic/" 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/K/KN/KNOK/File-MMagic-$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="4013fc1178cdf9c1a141652290e091f296b9bef54b9f4301926d9ed0a5262bbf67213773774e41aab8630bed20c2c9441befe55db9ca04a56d07099061b50e25 File-MMagic-1.30.tar.gz"