summaryrefslogtreecommitdiffstats
path: root/abs/extra/time/PKGBUILD
diff options
context:
space:
mode:
authorBritney Fransen <brfransen@gmail.com>2016-06-07 21:35:39 (GMT)
committerBritney Fransen <brfransen@gmail.com>2016-06-07 21:35:39 (GMT)
commitcdae2fe589ca2904c7f46f79bdfe611370364b95 (patch)
treed1ce65f57add20f305a2d55d2fabccbb0e169b60 /abs/extra/time/PKGBUILD
parent8c9dc836b4e96cacc66897228de39ae3a7c27ac9 (diff)
downloadlinhes_pkgbuild-cdae2fe589ca2904c7f46f79bdfe611370364b95.zip
linhes_pkgbuild-cdae2fe589ca2904c7f46f79bdfe611370364b95.tar.gz
linhes_pkgbuild-cdae2fe589ca2904c7f46f79bdfe611370364b95.tar.bz2
time: initial inclusion. dep of hdf5
Diffstat (limited to 'abs/extra/time/PKGBUILD')
-rw-r--r--abs/extra/time/PKGBUILD47
1 files changed, 47 insertions, 0 deletions
diff --git a/abs/extra/time/PKGBUILD b/abs/extra/time/PKGBUILD
new file mode 100644
index 0000000..6f08a73
--- /dev/null
+++ b/abs/extra/time/PKGBUILD
@@ -0,0 +1,47 @@
+# $Id$
+# Maintainer: Dave Reisner <dreisner@archlinux.org>
+# Contributor: Stéphane Gaudreault <stephane@archlinux.us>
+# Contributor: Daniel J Griffiths <ghost1227@archlinux.us>
+# Contributor: damir <damir@archlinux.org>
+
+pkgname=time
+pkgver=1.7
+pkgrel=8
+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')
+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')
+
+prepare() {
+ cd "$pkgname-$pkgver"
+
+ # cf https://bugzilla.redhat.com/show_bug.cgi?id=527276
+ patch -Np1 < "$srcdir"/time-1.7-Recompute-CPU-usage-at-microsecond-level.patch
+
+ # cf https://bugzilla.redhat.com/show_bug.cgi?id=702826
+ patch -Np1 < "$srcdir"/time-1.7-ru_maxrss-is-in-kilobytes-on-Linux.patch
+
+ # rebuild the ancient autoconf setup to fix a variety of build issues
+ # surrounding missing/incorrect includes.
+ autoreconf -fisv
+}
+
+build() {
+ cd "$pkgname-$pkgver"
+
+ ./configure --prefix=/usr --infodir=/usr/share/info
+ make
+}
+
+package() {
+ cd "$pkgname-$pkgver"
+
+ make exec_prefix="$pkgdir/usr" infodir="$pkgdir/usr/share/info" install
+}