[arch-commits] Commit in (5 files)
Robin Broda
coderobe at archlinux.org
Sun Apr 29 20:03:41 UTC 2018
Date: Sunday, April 29, 2018 @ 20:03:40
Author: coderobe
Revision: 318467
import from AUR
Added:
psensor/
psensor/repos/
psensor/trunk/
psensor/trunk/PKGBUILD
psensor/trunk/is_error.patch
----------------+
PKGBUILD | 38 ++++++++++++++++++++++++++++++++++++++
is_error.patch | 26 ++++++++++++++++++++++++++
2 files changed, 64 insertions(+)
Added: psensor/trunk/PKGBUILD
===================================================================
--- psensor/trunk/PKGBUILD (rev 0)
+++ psensor/trunk/PKGBUILD 2018-04-29 20:03:40 UTC (rev 318467)
@@ -0,0 +1,38 @@
+# Maintainer: Robin Broda <robin at broda.me>
+# Contributor: X0rg
+# Contributor: marlock <marlock87 at hotmail.com>
+# Contributor: Diogo Leal <estranho at diogoleal.com>
+
+pkgname=psensor
+pkgver=1.2.0
+pkgrel=3
+pkgdesc='A graphical hardware temperature monitor for Linux'
+arch=('x86_64')
+url='https://wpitchoune.net/psensor'
+license=('GPL2')
+depends=('lm_sensors' 'dconf' 'gtk3' 'udisks2' 'curl' 'libgtop' 'libnotify'
+ 'libappindicator3' 'libxnvctrl' 'json-c' 'libmicrohttpd')
+makedepends=('help2man')
+source=("https://wpitchoune.net/${pkgname}/files/${pkgname}-${pkgver}.tar.gz"
+ 'is_error.patch')
+md5sums=('0d8ac0a1312e96f2101ecc7c684e2863'
+ '04c45b3527e6cc4012fe60491751a0ac')
+
+prepare() {
+ cd "${pkgname}-${pkgver}"
+
+ patch -Np1 -i "${srcdir}/is_error.patch"
+}
+
+build() {
+ cd "${pkgname}-${pkgver}"
+
+ ./configure --prefix=/usr
+ make
+}
+
+package() {
+ cd "${pkgname}-${pkgver}"
+
+ make DESTDIR="${pkgdir}/" install
+}
Property changes on: psensor/trunk/PKGBUILD
___________________________________________________________________
Added: svn:keywords
## -0,0 +1 ##
+Id
\ No newline at end of property
Added: psensor/trunk/is_error.patch
===================================================================
--- psensor/trunk/is_error.patch (rev 0)
+++ psensor/trunk/is_error.patch 2018-04-29 20:03:40 UTC (rev 318467)
@@ -0,0 +1,26 @@
+--- a/src/rsensor.c 2016-12-20 00:39:54.000000000 +0100
++++ b/src/rsensor.c 2018-01-05 19:30:09.089759050 +0100
+@@ -133,7 +133,7 @@
+
+ obj = get_json_object(url);
+
+- if (obj && !is_error(obj)) {
++ if (obj && (obj != NULL)) {
+ n = json_object_array_length(obj);
+ sensors = malloc((n + 1) * sizeof(struct psensor *));
+
+@@ -168,12 +168,12 @@
+
+ obj = get_json_object(get_url(s));
+
+- if (obj && !is_error(obj)) {
++ if (obj && (obj != NULL)) {
+ json_object *om;
+
+ json_object_object_get_ex(obj, "last_measure", &om);
+
+- if (!is_error(obj)) {
++ if (obj != NULL) {
+ json_object *ov, *ot;
+ struct timeval tv;
+
More information about the arch-commits
mailing list