summaryrefslogtreecommitdiffstats
path: root/abs/core/perl_modules/perl-math-round/PKGBUILD
blob: dfd08b5d3fcfdd592c4e5800d5333631061cd7eb (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
# $Id$
# Maintainer: Giovanni Scafora <giovanni@archlinux.org>
# Contributor: François Charette <firmicus ατ gmx δοτ net>

pkgname=perl-math-round
pkgver=0.07
pkgrel=2
pkgdesc="Perl extension for rounding numbers"
arch=('any')
url="http://search.cpan.org/dist/Math-Round"
license=('GPL' 'PerlArtistic')
depends=('perl')
options=('!emptydirs')
source=("http://www.cpan.org/authors/id/G/GR/GROMMEL/Math-Round-$pkgver.tar.gz")
md5sums=('b74c5d2a3f891c19dafd7ce638732fd1')

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

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

package() {
  cd  "${srcdir}/Math-Round-${pkgver}"
  make install DESTDIR=${pkgdir}

  find ${pkgdir} -name '.packlist' -delete
  find ${pkgdir} -name '*.pod' -delete
}