# $Id: PKGBUILD 28318 2009-02-28 18:47:05Z kevin $ # Maintainer: kevin pkgname=perl-file-mimeinfo _realname=File-MimeInfo pkgver=0.15 pkgrel=1 pkgdesc='Perl/CPAN File::MimeInfo module - Determine file type' arch=(i686 x86_64) license=('GPL' 'PerlArtistic') url="http://search.cpan.org/dist/${_realname}/" depends=('perl-file-basedir' 'perl-file-desktopentry' 'shared-mime-info' 'perl') options=(!emptydirs) source=(http://search.cpan.org/CPAN/authors/id/P/PA/PARDUS/${_realname}/${_realname}-${pkgver}.tar.gz) md5sums=('41fa5a252203e1d6023ab5849fd9e0df') build() { cd ${srcdir}/${_realname}-${pkgver} # install module in vendor directories. perl Makefile.PL INSTALLDIRS=vendor || return 1 make || return 1 make install DESTDIR=${pkgdir} || return 1 # remove perllocal.pod and .packlist find ${pkgdir} -name perllocal.pod -delete find ${pkgdir} -name .packlist -delete }