summaryrefslogtreecommitdiff
path: root/extra/perl-time-hires/PKGBUILD
blob: 8972f0f21018e491f33d828b6857d2f8ecb1f181 (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' '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=('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}"
}