summaryrefslogtreecommitdiffstats
path: root/abs/core/perl_modules/perl-mime-tools/PKGBUILD
blob: 7ed81bb158cce5c226a06e4f9ca726ce40c77b6b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
# $Id: PKGBUILD 161352 2012-06-10 06:11:24Z giovanni $
# Maintainer: Giovanni Scafora <giovanni@archlinux.org>
# Contributor: François Charette <firmicus ατ gmx δοτ net>

pkgname=perl-mime-tools
pkgver=5.503
pkgrel=1
pkgdesc="Parses streams to create MIME entities"
arch=('any')
url="http://search.cpan.org/dist/MIME-tools"
license=('GPL' 'PerlArtistic')
depends=('perl-mailtools' 'perl-io-stringy' 'perl-convert-binhex')
options=('!emptydirs')
provides=('perl-mime-body=5.428.0' 'perl-mime-decoder' 'perl-mime-decoder-base64'
	'perl-mime-decoder-binary' 'perl-mime-decoder-binhex' 'perl-mime-decoder-gzip64'
	'perl-mime-decoder-nbit' 'perl-mime-decoder-quotedprint' 'perl-mime-decoder-uu'
	'perl-mime-entity' 'perl-mime-field-contdisp=5.428.0' 'perl-mime-field-contraenc=5.428.0'
	'perl-mime-field-conttype=5.428.0' 'perl-mime-field-paramval=5.428.0' 'perl-mime-head=5.428.0'
	'perl-mime-parser' 'perl-mime-parser-filer' 'perl-mime-parser-reader'
	'perl-mime-parser-results' 'perl-mime-worddecoder' 'perl-mime-words=5.428.0')
source=("http://www.cpan.org/authors/id/D/DS/DSKOLL/MIME-tools-${pkgver}.tar.gz") 
md5sums=('f86b968e9405318224b7a9f4574505d0')

build() {
  cd  "${srcdir}/MIME-tools-${pkgver}"

  PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
  make
}

package() {
  cd  "${srcdir}/MIME-tools-${pkgver}"
  make install DESTDIR="${pkgdir}"

  find ${pkgdir} -name '.packlist' -delete
  find ${pkgdir} -name '*.pod' -delete
}