summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: d7da7932bcf826cf1d82b081b82c88f6c3524b35 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
# Maintainer: Jose Riha <jose1711 gmail com>
# Contributor: Justin Davis <jrcd83@gmail.com>
# Generator  : CPANPLUS::Dist::Arch 1.09
pkgname='perl-crypt-rijndael'
pkgver='1.13'
pkgrel='1'
pkgdesc="AES/Rijndael Encryption Module"
arch=('i686' 'x86_64')
license=('PerlArtistic' 'GPL')
options=('!emptydirs')
depends=('perl')
makedepends=('perl-test-manifest>=1.14')
url='http://search.cpan.org/dist/Crypt-Rijndael'
source=("http://cpan.metacpan.org/authors/id/L/LE/LEONT/Crypt-Rijndael-${pkgver}.tar.gz")
md5sums=('2af117c9ab4052cec05cf6737c5f3f45')

build() {
  PERL=/usr/bin/perl
  DIST_DIR="${srcdir}/Crypt-Rijndael-${pkgver}"
  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 "$DIST_DIR" &&
    $PERL Makefile.PL &&
    make
}
}

check() {
  PERL=/usr/bin/perl
  DIST_DIR="${srcdir}/Crypt-Rijndael-${pkgver}"
  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 "$DIST_DIR" &&
    $PERL Makefile.PL &&
    make test
}
}


package() {
  DIST_DIR="${srcdir}/Crypt-Rijndael-${pkgver}"
  { cd "$DIST_DIR" &&
    make install;
  };

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