summaryrefslogtreecommitdiff
path: root/community/perl-list-moreutils/PKGBUILD
blob: f61467d58a779e9c8c62fdda2ea4715a4df40d3c (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
# Maintainer: François Charette <firmicus ατ gmx δοτ net>

pkgname=perl-list-moreutils
_cpanname=List-MoreUtils
pkgver=0.32
pkgrel=1
pkgdesc="Provide the stuff missing in List::Util"
arch=('i686' 'x86_64')
url="http://search.cpan.org/dist/$_cpanname"
license=('GPL' 'PerlArtistic')
depends=('perl')
options=('!emptydirs')
source=("http://search.cpan.org/CPAN/authors/id/A/AD/ADAMK/${_cpanname}-${pkgver}.tar.gz")
md5sums=('5af56334f8261f4662bd5e2b3f5e4e62')

build() {
  cd "$srcdir/${_cpanname}-$pkgver"
  PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
  make
}

check() {
  cd "$srcdir/${_cpanname}-$pkgver"
  make test
}

package() {
  cd "$srcdir/${_cpanname}-$pkgver"
  make install DESTDIR="$pkgdir"
  find "$pkgdir" -name '.packlist' -o -name '*.pod' -delete
}