PKGBUILDs/extra/perl-mime-types/PKGBUILD
2009-10-09 21:23:22 -05:00

29 lines
910 B
Bash

# $Id: PKGBUILD 29066 2009-03-05 01:51:58Z kevin $
# Maintainer: Jan de Groot
# Contributor: Charles Mauch <cmauch@gmail.com>
pkgname=perl-mime-types
_realname=MIME-Types
pkgver=1.27
pkgrel=1
pkgdesc="Perl/CPAN Module MIME::Types : Information and processing MIME types"
arch=(i686 x86_64)
license=('PerlArtistic')
url="http://search.cpan.org/dist/${_realname}/"
depends=('perl>=5.10.0')
# Doesn't need perl-test-pod to build.
options=(!emptydirs)
source=(http://www.cpan.org/authors/id/M/MA/MARKOV/${_realname}-${pkgver}.tar.gz)
md5sums=('9407dfdd3a5adb7bf569ed2a184f1640')
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
}