summaryrefslogtreecommitdiff
path: root/testing/perl-time-hires
diff options
context:
space:
mode:
authorroot <root@rshg054.dnsready.net>2012-05-28 17:43:57 +0000
committerroot <root@rshg054.dnsready.net>2012-05-28 17:43:57 +0000
commit483f7de4ab6a706517279a24d2efc969f4a1996d (patch)
tree128a7513d3e42c4d8812b5fd11a4afb116399762 /testing/perl-time-hires
parent89dd7b5f30d48c708092a71b1c8285090fe91505 (diff)
Mon May 28 17:43:57 UTC 2012
Diffstat (limited to 'testing/perl-time-hires')
-rw-r--r--testing/perl-time-hires/PKGBUILD35
1 files changed, 35 insertions, 0 deletions
diff --git a/testing/perl-time-hires/PKGBUILD b/testing/perl-time-hires/PKGBUILD
new file mode 100644
index 000000000..5fc364c84
--- /dev/null
+++ b/testing/perl-time-hires/PKGBUILD
@@ -0,0 +1,35 @@
+# $Id: PKGBUILD 159919 2012-05-27 07:43:58Z bluewind $
+# Maintainer: Giovanni Scafora <giovanni@archlinux.org>
+# Contributor: mezcal <fila at pruda dot com>
+
+pkgname=perl-time-hires
+pkgver=1.9725
+pkgrel=2
+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}"
+}