summaryrefslogtreecommitdiff
path: root/extra/time/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'extra/time/PKGBUILD')
-rw-r--r--extra/time/PKGBUILD19
1 files changed, 15 insertions, 4 deletions
diff --git a/extra/time/PKGBUILD b/extra/time/PKGBUILD
index 78d5a7d61..8b1a81e6e 100644
--- a/extra/time/PKGBUILD
+++ b/extra/time/PKGBUILD
@@ -1,22 +1,33 @@
-# $Id: PKGBUILD 109750 2011-02-12 13:42:27Z stephane $
+# $Id: PKGBUILD 131069 2011-07-10 01:00:33Z stephane $
# Maintainer: Stéphane Gaudreault <stephane@archlinux.us>
# Contributor: Daniel J Griffiths <ghost1227@archlinux.us>
# Contributor: damir <damir@archlinux.org>
pkgname=time
pkgver=1.7
-pkgrel=4
+pkgrel=5
pkgdesc="Utility for monitoring a program's use of system resources"
arch=('i686' 'x86_64')
url="http://www.gnu.org/directory/time.html"
license=('GPL')
depends=('glibc')
install=time.install
-source=(http://ftp.gnu.org/pub/gnu/${pkgname}/${pkgname}-${pkgver}.tar.gz)
-md5sums=('e38d2b8b34b1ca259cf7b053caac32b3')
+source=(http://ftp.gnu.org/pub/gnu/${pkgname}/${pkgname}-${pkgver}.tar.gz
+ time-1.7-Recompute-CPU-usage-at-microsecond-level.patch
+ time-1.7-ru_maxrss-is-in-kilobytes-on-Linux.patch)
+sha1sums=('dde0c28c7426960736933f3e763320680356cc6a'
+ 'fff80e05dd41f0a59bb1f49d1c6e581d5e8e92e5'
+ 'b2a909e1d92f7af1bc99a4524ad84d467ed79a06')
+
build() {
cd "${srcdir}/${pkgname}-${pkgver}"
+
+ # cf https://bugzilla.redhat.com/show_bug.cgi?id=527276
+ patch -Np1 -i ../time-1.7-Recompute-CPU-usage-at-microsecond-level.patch
+
+ # cf https://bugzilla.redhat.com/show_bug.cgi?id=702826
+ patch -Np1 -i ../time-1.7-ru_maxrss-is-in-kilobytes-on-Linux.patch
./configure --prefix=/usr --infodir=/usr/share/info
make