summaryrefslogtreecommitdiff
path: root/community/qps
diff options
context:
space:
mode:
authorroot <root@rshg054.dnsready.net>2011-08-12 23:14:35 +0000
committerroot <root@rshg054.dnsready.net>2011-08-12 23:14:35 +0000
commit3b2bf66355e8254bc2f033dab2dfea9e2978fa4d (patch)
tree71995991b30b0bfc7deb0c92f1da969bbfd91ec7 /community/qps
parenteddbc98aa28d38b35833cfb1a4a3cf632c9f2b47 (diff)
Fri Aug 12 23:14:35 UTC 2011
Diffstat (limited to 'community/qps')
-rw-r--r--community/qps/PKGBUILD11
-rw-r--r--community/qps/version-patch.diff14
2 files changed, 21 insertions, 4 deletions
diff --git a/community/qps/PKGBUILD b/community/qps/PKGBUILD
index c6a528fe6..4e3e69e34 100644
--- a/community/qps/PKGBUILD
+++ b/community/qps/PKGBUILD
@@ -1,21 +1,24 @@
-# $Id: PKGBUILD 52003 2011-07-19 16:41:14Z spupykin $
+# $Id: PKGBUILD 54014 2011-08-11 18:04:13Z spupykin $
# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>
# Contributor: David Rosenstrauch <darose@darose.net>
pkgname=qps
pkgver=1.10.15
_dlpkgver=5946
-pkgrel=1
+pkgrel=2
pkgdesc="a visual process manager, an X11 version of 'top' or 'ps'."
url="http://qps.kldp.net/projects/qps"
depends=('qt')
arch=('i686' 'x86_64')
license="GPL"
-source=(http://kldp.net/frs/download.php/${_dlpkgver}/qps-$pkgver.tar.bz2)
-md5sums=('25a6c6f8ac9172a6874e3514edf1eda1')
+source=(http://kldp.net/frs/download.php/${_dlpkgver}/qps-$pkgver.tar.bz2
+ version-patch.diff)
+md5sums=('25a6c6f8ac9172a6874e3514edf1eda1'
+ 'e323a796a3dbf44a99af386e867f7848')
build() {
cd $srcdir/$pkgname-$pkgver
+ patch -p0 <$srcdir/version-patch.diff
qmake
make
}
diff --git a/community/qps/version-patch.diff b/community/qps/version-patch.diff
new file mode 100644
index 000000000..bfddd2a0a
--- /dev/null
+++ b/community/qps/version-patch.diff
@@ -0,0 +1,14 @@
+--- proc_linux.cpp 2011-07-17 08:03:52.000000000 -0400
++++ proc_linux.cpp.new 2011-08-09 11:09:47.278589772 -0400
+@@ -1962,7 +1962,10 @@
+ int result;
+
+ result = sscanf(p, "%d.%d.%d", &major, &minor, &patch);
+- if(result < 3) {
++ if(result == 2) {
++ patch = 0;
++ }
++ else if(result < 3) {
+ fprintf(stderr, "Qps: can't determine version, read %s \n", p);
+ fprintf(stderr, "please report this bug.\n");
+ exit(1);