updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / perl-extutils-command / PKGBUILD
blob6bce7d4f002cb140adad1f19ea5827c95c0e87ad
1 # Maintainer: Justin Davis <aurperl@juster.us>
3 pkgname=perl-extutils-command
4 pkgver=1.17
5 pkgrel=1
6 pkgdesc="utilities to replace common UNIX commands in Makefiles etc."
7 arch=(any)
8 license=(GPL)
9 depends=('perl>=5.5.30')
10 url=http://search.cpan.org/dist/ExtUtils-Command
11 source=('http://search.cpan.org/CPAN/authors/id/F/FL/FLORA/ExtUtils-Command-1.17.tar.gz')
12 md5sums=(8d2bd6a2311b6264d3dd96c11601c34a)
13 sha512sums=(69040173a839cd763673a45ae5897c25fdd581a598008a282cc7c42e0051ecdb29c2b608207e0e940b0b7bcf894d1f6344596d4aca319c5c094ca289615c6291)
14 _distdir="${srcdir}/ExtUtils-Command-${pkgver}"
16 build() {
17   ( export PERL_MM_USE_DEFAULT=1 PERL5LIB=""                 \
18       PERL_AUTOINSTALL=--skipdeps                            \
19       PERL_MM_OPT="INSTALLDIRS=vendor DESTDIR='$pkgdir'"     \
20       PERL_MB_OPT="--installdirs vendor --destdir '$pkgdir'" \
21       MODULEBUILDRC=/dev/null
23     cd "$_distdir"
24     /usr/bin/perl Makefile.PL
25     make
26   )
29 check() {
30   ( export PERL_MM_USE_DEFAULT=1 PERL5LIB=""
31     cd "$_distdir"
32     make test
33   )
36 package() {
37     cd "$_distdir"
38     make DESTDIR="$pkgdir" install
39     find "$pkgdir" -name .packlist -o -name perllocal.pod -delete
42 # Local Variables:
43 # mode: shell-script
44 # sh-basic-offset: 2
45 # End:
46 # vim:set ts=2 sw=2 et: