updated on Thu Jan 26 00:18:00 UTC 2012
[aur-mirror.git] / perl-super / PKGBUILD
blob004e63424bcbd857a68d250c1d6bbb1c458d7da0
1 # CPAN Name  : SUPER
2 # Contributor: Caleb Cushing <xenoterracide@gmail.com>
3 # Generator  : CPANPLUS::Dist::Arch 1.04
4 # Template @ http://github.com/xenoterracide/AURpan/blob/master/perl-super/PKGBUILD.tt
5 # File bugs @ http://github.com/xenoterracide/AURpan/issues
7 pkgname='perl-super'
8 pkgver='1.17'
9 pkgrel='1'
10 pkgdesc="Internal class to access superclass methods"
11 arch=('any')
12 url='http://search.cpan.org/dist/SUPER'
13 license=('PerlArtistic' 'GPL')
14 depends=('perl' 'perl-sub-identify>=0.03')
17 options=('!emptydirs')
19 source=('http://search.cpan.org/CPAN/authors/id/C/CH/CHROMATIC/SUPER-1.17.tar.gz')
20 md5sums=('aa54aa7e9148c368091e34559587f3b2')
22 build() {
23   DIST_DIR="${srcdir}/SUPER-1.17"
24   export PERL_MM_USE_DEFAULT=1 PERL5LIB=""                 \
25     PERL_AUTOINSTALL=--skipdeps                            \
26     PERL_MM_OPT="INSTALLDIRS=vendor DESTDIR='$pkgdir'"     \
27     PERL_MB_OPT="--installdirs vendor --destdir '$pkgdir'" \
28     MODULEBUILDRC=/dev/null
29   {
30         cd "$DIST_DIR" &&
31     perl Build.PL &&
32     perl Build &&
33     perl Build test &&
34     perl Build install;
35   } || return 1;
37   find "$pkgdir" -name .packlist -o -name perllocal.pod -delete