# $Id: PKGBUILD 127066 2015-02-04 03:41:37Z fyan $
# Maintainer: Felix Yan <felixonmars@archlinux.org>
# Contributor: John D Jones III <j[nospace]n[nospace]b[nospace]e[nospace]k[nospace]1972 -_AT_- the domain name google offers a mail service at ending in dot com>
# Generator  : CPANPLUS::Dist::Arch 1.25

pkgname=perl-crypt-openssl-dsa
pkgver=0.15
pkgrel=1
pkgdesc="Digital Signature Algorithm using OpenSSL"
arch=('i686' 'x86_64')
license=('PerlArtistic' 'GPL')
options=('!emptydirs')
depends=('openssl' 'perl')
url='http://search.cpan.org/dist/Crypt-OpenSSL-DSA'
source=("http://search.cpan.org/CPAN/authors/id/K/KM/KMX/Crypt-OpenSSL-DSA-$pkgver.tar.gz")
sha512sums=('bbc9d3eb487fca1c97a5b843e6d109da0559582ef9063daf9272ff748a5443421a8c81532e522280eaf9434cf79cd9856b6051fcf0ae8ad39ead2dc0f66842dc')
_distdir="Crypt-OpenSSL-DSA-$pkgver"

build() {
  ( export PERL_MM_USE_DEFAULT=1 PERL5LIB=""                 \
      PERL_AUTOINSTALL=--skipdeps                            \
      PERL_MM_OPT="INSTALLDIRS=vendor DESTDIR='$pkgdir'"     \
      PERL_MB_OPT="--installdirs vendor --destdir '$pkgdir'" \
      MODULEBUILDRC=/dev/null

    cd "$srcdir/$_distdir"
    /usr/bin/perl Makefile.PL
    make
  )
}

check() {
  cd "$srcdir/$_distdir"
  ( export PERL_MM_USE_DEFAULT=1 PERL5LIB=""
    make test
  )
}

package() {
  cd "$srcdir/$_distdir"
  make install

  find "$pkgdir" -name .packlist -o -name perllocal.pod -delete
}

# vim:set ts=2 sw=2 et:
