1 # based on PKGBUILD generated by cpan4pacman
3 pkgname=perl-mail-sender
7 pkgdesc="socket() based mail with attachments, SMTP"
9 url="http://search.cpan.org/dist/${_cpanname}"
10 license=('GPL' 'PerlArtistic')
12 options=('!emptydirs')
13 source=(http://www.cpan.org/authors/id/J/JE/JENDA/${_cpanname}-${pkgver}.tar.gz)
14 md5sums=('e5d88236202b3d39567ade7d560797b0')
17 cd "$srcdir/${_cpanname}-${pkgver}"
18 sed -i '/^auto_install/d' Makefile.PL
20 PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor || return 1
22 make install DESTDIR="$pkgdir" || return 1
24 find "$pkgdir" -name '.packlist' -delete
25 find "$pkgdir" -name '*.pod' -delete