[arch-commits] Commit in perl-time-hires/trunk (PKGBUILD)
Giovanni Scafora
giovanni at archlinux.org
Wed Jul 13 14:46:13 UTC 2011
Date: Wednesday, July 13, 2011 @ 10:46:13
Author: giovanni
Revision: 131686
upgpkg: perl-time-hires 1.9724-1
upstream release
Modified:
perl-time-hires/trunk/PKGBUILD
----------+
PKGBUILD | 28 +++++++++++++++++++---------
1 file changed, 19 insertions(+), 9 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2011-07-13 14:36:34 UTC (rev 131685)
+++ PKGBUILD 2011-07-13 14:46:13 UTC (rev 131686)
@@ -3,23 +3,33 @@
# Contributor: mezcal <fila at pruda dot com>
pkgname=perl-time-hires
-pkgver=1.9721
-pkgrel=4
+pkgver=1.9724
+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/J/JH/JHI/Time-HiRes-${pkgver}.tar.gz)
-md5sums=('bf09911a36b9481537c8e0d28fbb3aaf')
+source=("http://search.cpan.org/CPAN/authors/id/Z/ZE/ZEFRAM/Time-HiRes-${pkgver}.tar.gz")
+md5sums=('6467b001de9ba5c01785ebbb8ea247cb')
build() {
cd "${srcdir}/Time-HiRes-${pkgver}"
- # install module in vendor directories.
- perl Makefile.PL INSTALLDIRS=vendor
- make
- make test
- make install DESTDIR="${pkgdir}"
+ 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}"
+}
More information about the arch-commits
mailing list