summaryrefslogtreecommitdiff
path: root/extra/perl-time-hires/PKGBUILD
blob: 9808e3bbd60d3df9ad8ca0acd7c126db290e2dff (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
35
# $Id: PKGBUILD 143950 2011-11-30 22:03:46Z giovanni $
# Maintainer: Giovanni Scafora <giovanni@archlinux.org>
# Contributor: mezcal <fila at pruda dot com>

pkgname=perl-time-hires
pkgver=1.9724
pkgrel=2
pkgdesc="Perl module: high resolution time, sleep, and alarm"
arch=('i686' 'x86_64' 'mips64el')
license=('PerlArtistic')
url="http://search.cpan.org/dist/Time-HiRes/"
depends=('perl')
options=(!emptydirs)
source=("http://search.cpan.org/CPAN/authors/id/Z/ZE/ZEFRAM/Time-HiRes-${pkgver}.tar.gz")
md5sums=('6467b001de9ba5c01785ebbb8ea247cb')

build() {
  cd "${srcdir}/Time-HiRes-${pkgver}"

  PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor

  make
}

check() {
  cd "${srcdir}/Time-HiRes-${pkgver}"

  make test
}

package() {
  cd "${srcdir}/Time-HiRes-${pkgver}"

  make install DESTDIR="${pkgdir}"
}