1 # Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>
3 pkgname=perl-file-mmagic
6 pkgdesc="Guess file type"
8 license=('PerlArtistic')
9 url="https://search.cpan.org/dist/File-MMagic"
12 source=("https://search.cpan.org/CPAN/authors/id/K/KN/KNOK/File-MMagic-${pkgver}.tar.gz")
13 md5sums=('a0157c71d5872fa07102a2ffaf7979ec')
16 cd "${srcdir}/File-MMagic-${pkgver}"
18 PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
23 cd "${srcdir}/File-MMagic-${pkgver}"
24 make install DESTDIR="${pkgdir}"
26 # remove perllocal.pod and .packlist
27 find "${pkgdir}" -name perllocal.pod -delete
28 find "${pkgdir}" -name .packlist -delete