summaryrefslogtreecommitdiff
path: root/user/xfce4-systemload-plugin
diff options
context:
space:
mode:
Diffstat (limited to 'user/xfce4-systemload-plugin')
-rw-r--r--user/xfce4-systemload-plugin/APKBUILD19
-rw-r--r--user/xfce4-systemload-plugin/fix-failure-due-to-wrong-var-type.patch25
2 files changed, 37 insertions, 7 deletions
diff --git a/user/xfce4-systemload-plugin/APKBUILD b/user/xfce4-systemload-plugin/APKBUILD
index 32950f105..ada0713b9 100644
--- a/user/xfce4-systemload-plugin/APKBUILD
+++ b/user/xfce4-systemload-plugin/APKBUILD
@@ -1,15 +1,19 @@
-# Contributor: Kiyoshi Aman <kiyoshi.aman+adelie@gmail.com>
-# Maintainer: Kiyoshi Aman <kiyoshi.aman+adelie@gmail.com>
+# Contributor: Síle Ekaterin Liszka <sheila@vulpine.house>
+# Maintainer: Síle Ekaterin Liszka <sheila@vulpine.house>
pkgname=xfce4-systemload-plugin
-pkgver=1.2.3
-pkgrel=0
+pkgver=1.3.2
+_xfce=4.16
+pkgrel=1
pkgdesc="System load monitor plugin for the XFCE panel"
url="https://xfce.org"
arch="all"
license="BSD-2-Clause"
-makedepends="intltool libxfce4ui-dev xfce4-panel-dev"
+depends=""
+makedepends="intltool libxfce4ui-dev xfce4-panel-dev>=${_xfce}"
subpackages="$pkgname-lang"
-source="https://archive.xfce.org/src/panel-plugins/xfce4-systemload-plugin/1.2/xfce4-systemload-plugin-$pkgver.tar.bz2"
+source="https://archive.xfce.org/src/panel-plugins/xfce4-systemload-plugin/${pkgver%.*}/xfce4-systemload-plugin-$pkgver.tar.bz2
+ fix-failure-due-to-wrong-var-type.patch
+ "
build() {
LIBS="-lintl" ./configure \
@@ -30,4 +34,5 @@ package() {
make DESTDIR="$pkgdir" install
}
-sha512sums="98985b2250bfff3ae8314f5671ec4438f4c53702cf9e1b76563cdc5d1b4b62174d6cfa559603294c1fc8fbbd5e15a833cc112c75b106a85b1e11788ded4da538 xfce4-systemload-plugin-1.2.3.tar.bz2"
+sha512sums="f432988f439e5fd7ada16b3e6eaa42b3351531ba3e2b63e2570387bf4d7e605ff9d5a97fde3f5f5eb323ff08aaf3c050f161a5768392b80aa99fabaabda82431 xfce4-systemload-plugin-1.3.2.tar.bz2
+2d31ce9fbfb172d377142eb3be5cdc0a969b230f48c822ecd32a76a9cef128d632bb4223442e855f2d0ba12d60a141830b8121f0e3f45f0a15dc9b08138f6455 fix-failure-due-to-wrong-var-type.patch"
diff --git a/user/xfce4-systemload-plugin/fix-failure-due-to-wrong-var-type.patch b/user/xfce4-systemload-plugin/fix-failure-due-to-wrong-var-type.patch
new file mode 100644
index 000000000..3fa8535d9
--- /dev/null
+++ b/user/xfce4-systemload-plugin/fix-failure-due-to-wrong-var-type.patch
@@ -0,0 +1,25 @@
+From 13a2e3ecb4b6cf6aad26c6b1d2388ef6922a5c92 Mon Sep 17 00:00:00 2001
+From: Akbarkhon Variskhanov <akbarkhon.variskhanov@gmail.com>
+Date: Tue, 20 Dec 2022 13:50:40 +0500
+Subject: [PATCH] build: Fix failure due to wrong var type (Fixes #25)
+
+---
+ panel-plugin/network.cc | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/panel-plugin/network.cc b/panel-plugin/network.cc
+index 6a85dab..3de831d 100644
+--- a/panel-plugin/network.cc
++++ b/panel-plugin/network.cc
+@@ -114,7 +114,7 @@ read_netload_proc (gulong *bytes)
+ gint
+ read_netload (gulong *net, gulong *NTotal)
+ {
+- static guint64 bytes[2];
++ static gulong bytes[2];
+ static gint64 time[2];
+
+ *net = 0;
+--
+GitLab
+