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

29 lines
961 B
Bash

# $Id: PKGBUILD 29062 2009-03-05 01:39:59Z kevin $
# Maintainer: eric <eric@archlinux.org>
# Contributor: Eric Johnson <eric@coding-zone.com>
pkgname=perl-mime-lite
_realname=MIME-Lite
pkgver=3.024
pkgrel=1
pkgdesc="Perl module that provides lightweight MIME generator"
arch=(i686 x86_64)
license=('GPL' 'PerlArtistic')
url="http://search.cpan.org/dist/${_realname}/"
depends=('perl-mailtools' 'perl-mime-types' 'perl>=5.10.0')
options=(!emptydirs)
source=(http://search.cpan.org/CPAN/authors/id/R/RJ/RJBS/${_realname}-$pkgver.tar.gz)
md5sums=('ca71d1d844f5c4f693e5079a2b4fa9a5')
build() {
cd ${srcdir}/${_realname}-$pkgver
# install module in vendor directories.
PERL_MM_USE_DEFAULT=1 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
}
# vim: ts=2 sw=2 et ft=sh