# $Id: PKGBUILD 135728 2015-06-22 19:26:42Z heftig $
# Maintainer: Chris Brannon <cmbrannon79@gmail.com>
# Contributor: Abhishek Dasgupta <abhidg@gmail.com>

pkgname=perl-net-smtp-ssl
pkgver=1.03
pkgrel=1
pkgdesc="SSL support for Net::SMTP"
arch=(any)
url="http://search.cpan.org/dist/Net-SMTP-SSL/"
license=('GPL' 'PerlArtistic')
depends=('perl-io-socket-ssl')
source=("http://www.cpan.org/authors/id/R/RJ/RJBS/Net-SMTP-SSL-${pkgver}.tar.gz")
options=(!emptydirs)

package() {
  cd "${srcdir}/Net-SMTP-SSL-${pkgver}"
  # Install module into the vendor directories.
  perl Makefile.PL INSTALLDIRS=vendor
  make
  make DESTDIR="$pkgdir" install || return 1

  # Remove .packlist and perllocal.pod files.
  find "$pkgdir" -name '.packlist' -delete
  find "$pkgdir" -name 'perllocal.pod' -delete
}
md5sums=('75c80e6af5583630ba074b25c0b5ee84')
