updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / perl-crypt-dsa / PKGBUILD
blob699a87d44c3f2d3aee46697aeef6822944b1b4af
1 # CPAN Name  : Crypt-DSA
2 # Contributor: Caleb Cushing <xenoterracide@gmail.com>
3 # Generator  : CPANPLUS::Dist::Arch 1.04
4 # Template @ http://github.com/xenoterracide/AURpan/blob/master/perl-crypt-dsa/PKGBUILD.tt
5 # File bugs @ http://github.com/xenoterracide/AURpan/issues
7 pkgname='perl-crypt-dsa'
8 pkgver='1.16'
9 pkgrel='1'
10 pkgdesc="DSA signatures and key generation"
11 arch=('any')
12 url='http://search.cpan.org/dist/Crypt-DSA'
13 license=('PerlArtistic' 'GPL')
14 depends=('perl' 'perl-data-buffer>=0.01' 'perl-digest-sha1' 'perl-file-which>=0.05')
17 options=('!emptydirs')
19 source=('http://search.cpan.org/CPAN/authors/id/A/AD/ADAMK/Crypt-DSA-1.16.tar.gz')
20 md5sums=('a099204d57043767fbe31d639eb43b03')
22 build() {
23   DIST_DIR="${srcdir}/Crypt-DSA-1.16"
24   export PERL_AUTOINSTALL=--skipdeps PERL_MM_USE_DEFAULT=1 \
25     PERL_MM_OPT="INSTALLDIRS=vendor DESTDIR='$pkgdir'"
26     PERL_MB_OPT="--installdirs vendor --destdir '$pkgdir'" \
27     MODULEBUILDRC=/dev/null
28   {
29         cd "$DIST_DIR" &&
30     perl Makefile.PL INSTALLDIRS=vendor &&
31     make &&
32     make test &&
33     make DESTDIR="$pkgdir" install;
34   } || return 1;
36   find "$pkgdir" -name .packlist -o -name perllocal.pod -delete