updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / perl-sort-array / PKGBUILD
blobf49b8fc0e370644cebd1ceb2b7390c78a317a670
1 # CPAN Name  : Sort-Array
2 # Contributor: Nik Anachi <nik.anachi@gmail.com>
4 pkgname='perl-sort-array'
5 pkgver='0.26'
6 pkgrel='1'
7 pkgdesc="This extended sorting algorithm allows you to sort an array by any field number"
8 arch=('any')
9 license=('PerlArtistic' 'GPL')
10 options=('!emptydirs')
11 depends=('perl')
12 url='http://search.cpan.org/~midi/Sort-Array-0.26/'
13 source=('http://search.cpan.org/CPAN/authors/id/M/MI/MIDI/Sort-Array-0.26.tar.gz')
14 md5sums=('9743023430bc3f5ccd8afc7ebd72d91a')
16 build() {
17   PERL=/usr/bin/perl
18   DIST_DIR="${srcdir}/Sort-Array-0.26"
19   export PERL_MM_USE_DEFAULT=1 PERL5LIB=""                 \
20     PERL_AUTOINSTALL=--skipdeps                            \
21     PERL_MM_OPT="INSTALLDIRS=vendor DESTDIR='$pkgdir'"     \
22     PERL_MB_OPT="--installdirs vendor --destdir '$pkgdir'" \
23     MODULEBUILDRC=/dev/null
25   { cd "$DIST_DIR" &&
26     $PERL Makefile.PL &&
27     make &&
28     make test &&
29     make install;
30   } || return 1;
32   find "$pkgdir" -name .packlist -o -name perllocal.pod -delete