updated on Sat Jan 21 08:01:15 UTC 2012
[aur-mirror.git] / perl-module-signature / PKGBUILD
blobddbb3175972f0d03b2fa9043bfa9be0d1b256f8d
1 # CPAN Name  : Module-Signature
2 # Contributor: AUR Perl <aurperl@juster.info>
3 # Generator  : CPANPLUS::Dist::Arch 1.12
5 pkgname='perl-module-signature'
6 pkgver='0.68'
7 pkgrel='2'
8 pkgdesc="Module signature file manipulation"
9 arch=('any')
10 license=('PerlArtistic' 'GPL')
11 options=('!emptydirs')
12 depends=('perl' 'gnupg')
13 makedepends=('perl-ipc-run')
14 url='http://search.cpan.org/dist/Module-Signature'
15 source=('http://search.cpan.org/CPAN/authors/id/F/FL/FLORA/Module-Signature-0.68.tar.gz')
16 md5sums=('c63c0b5c4e7162fc0c44512e1f832e5e')
17 _distdir="${srcdir}/Module-Signature-0.68"
19 build() {
20   ( export PERL_MM_USE_DEFAULT=0 PERL5LIB=""                 \
21       PERL_AUTOINSTALL=--skipdeps                            \
22       PERL_MM_OPT="INSTALLDIRS=vendor DESTDIR='$pkgdir'"     \
23       PERL_MB_OPT="--installdirs vendor --destdir '$pkgdir'" \
24       MODULEBUILDRC=/dev/null
26     cd "$_distdir"
27     # --installdeps doesn't install any deps when gnupg is available.
28     # Instead we use it to avoid importing gnupg public keys
29     # automatically into the building users' keyring.
30     /usr/bin/perl Makefile.PL --installdeps
31     make
32   )
35 check() {
36   cd "$_distdir"
37   ( export PERL_MM_USE_DEFAULT=1 PERL5LIB=""
38     make test
39   )
42 package() {
43   cd "$_distdir"
44   make install
45   find "$pkgdir" -name .packlist -o -name perllocal.pod -delete
48 # Local Variables:
49 # mode: shell-script
50 # sh-basic-offset: 2
51 # End:
52 # vim:set ts=2 sw=2 et: