summaryrefslogtreecommitdiff
path: root/extra/perl-time-hires/PKGBUILD
blob: d719fd468c88d408290e98f444913b7a9bf9f1bd (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 149153 2012-02-06 00:45:55Z giovanni $
# Maintainer: Giovanni Scafora <giovanni@archlinux.org>
# Contributor: mezcal <fila at pruda dot com>

pkgname=perl-time-hires
pkgver=1.9725
pkgrel=1
pkgdesc="Perl module: high resolution time, sleep, and alarm"
arch=('i686' 'x86_64')
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=('cb1108c076d26f3d2fed0bb91313135a')

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}"
}