upgpkg: ufw 0.36.2-1
[ArchLinux/community.git] / perl-file-mmagic / repos / community-any / PKGBUILD
blob417232515387ea3d3c69da7e1606b571216fe418
1 # Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>
3 pkgname=perl-file-mmagic
4 pkgver=1.30
5 pkgrel=5
6 pkgdesc="Guess file type"
7 arch=(any)
8 license=('PerlArtistic')
9 url="https://search.cpan.org/dist/File-MMagic"
10 depends=('perl')
11 options=(!emptydirs)
12 source=("https://search.cpan.org/CPAN/authors/id/K/KN/KNOK/File-MMagic-${pkgver}.tar.gz")
13 md5sums=('a0157c71d5872fa07102a2ffaf7979ec')
15 build() {
16   cd "${srcdir}/File-MMagic-${pkgver}"
18   PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
19   make
22 package() {
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