From 3cb924f4a3dada8741c8d8c535b58e0934955543 Mon Sep 17 00:00:00 2001 From: Matteo Bernardini Date: Sat, 10 Apr 2021 16:45:58 +0200 Subject: desktop/lxpanel: Updated for version 0.10.1. Signed-off-by: Matteo Bernardini Signed-off-by: Willy Sudiarto Raharjo --- desktop/lxpanel/fix_battery_alarm.patch | 47 --------------------------------- desktop/lxpanel/lxpanel.SlackBuild | 6 ++--- desktop/lxpanel/lxpanel.info | 6 ++--- 3 files changed, 5 insertions(+), 54 deletions(-) delete mode 100644 desktop/lxpanel/fix_battery_alarm.patch (limited to 'desktop/lxpanel') diff --git a/desktop/lxpanel/fix_battery_alarm.patch b/desktop/lxpanel/fix_battery_alarm.patch deleted file mode 100644 index 2753619444404..0000000000000 --- a/desktop/lxpanel/fix_battery_alarm.patch +++ /dev/null @@ -1,47 +0,0 @@ -From 19936f24c343437447ef7e765113fc4679df07eb Mon Sep 17 00:00:00 2001 -From: Andriy Grytsenko -Date: Wed, 27 Feb 2019 02:49:00 +0200 -Subject: [PATCH] fix battery alarm when measurement of current is missing. - -See https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=854643 ---- - ChangeLog | 4 ++++ - plugins/batt/batt.c | 3 ++- - 2 files changed, 6 insertions(+), 1 deletion(-) - -diff --git a/ChangeLog b/ChangeLog -index c0861de..0d610c8 100644 ---- a/ChangeLog -+++ b/ChangeLog -@@ -1,3 +1,7 @@ -+0.10.1 -+------------------------------------------------------------------------- -+* Fixed battery alarm when measurement of current is missing. -+ - 0.10.0 - ------------------------------------------------------------------------- - * Fixed delayed application of font cnahges on dclock and weather plugins. -diff --git a/plugins/batt/batt.c b/plugins/batt/batt.c -index f47549c..cc7bfea 100644 ---- a/plugins/batt/batt.c -+++ b/plugins/batt/batt.c -@@ -111,6 +111,7 @@ static void * alarmProcess(void *arg) { - sem_wait(a->lock); - if (system(a->command) != 0) - g_warning("plugin batt: failed to execute alarm command \"%s\"", a->command); -+ sleep(51); /* do not spam messages more often than once a minute */ - sem_post(a->lock); - - g_free(a); -@@ -257,7 +258,7 @@ void update_display(lx_battery *lx_b, gboolean repaint) { - isCharging = battery_is_charging ( b ); - - /* Consider running the alarm command */ -- if ( !isCharging && rate > 0 && -+ if ( !isCharging && - ( ( battery_get_remaining( b ) / 60 ) < (int)lx_b->alarmTime ) ) - { - /* FIXME: this should be done using glibs process functions */ --- -2.1.4 - diff --git a/desktop/lxpanel/lxpanel.SlackBuild b/desktop/lxpanel/lxpanel.SlackBuild index cce093b1e7497..edbbc89a7ef3d 100644 --- a/desktop/lxpanel/lxpanel.SlackBuild +++ b/desktop/lxpanel/lxpanel.SlackBuild @@ -3,7 +3,7 @@ # Slackware build script for lxpanel # (C) 2008 Michael Wagner -# Copyright 2011-2019 Matteo Bernardini , Pisa, Italy +# Copyright 2011-2021 Matteo Bernardini , Pisa, Italy # All rights reserved. # # Redistribution and use of this script, with or without modification, is @@ -26,7 +26,7 @@ # Modified by Matteo Bernardini PRGNAM=lxpanel -VERSION=${VERSION:-0.10.0} +VERSION=${VERSION:-0.10.1} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} @@ -74,8 +74,6 @@ find -L . \ \( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \ -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \; -patch -p1 < $CWD/fix_battery_alarm.patch - sh autogen.sh || true CFLAGS="$SLKCFLAGS" \ diff --git a/desktop/lxpanel/lxpanel.info b/desktop/lxpanel/lxpanel.info index be31b8a229656..acb7f1aa94392 100644 --- a/desktop/lxpanel/lxpanel.info +++ b/desktop/lxpanel/lxpanel.info @@ -1,8 +1,8 @@ PRGNAM="lxpanel" -VERSION="0.10.0" +VERSION="0.10.1" HOMEPAGE="https://wiki.lxde.org/en/LXPanel" -DOWNLOAD="https://downloads.sf.net/lxde/lxpanel-0.10.0.tar.xz" -MD5SUM="e6a1f9bd5cf39812e1c5d2453a34a7c5" +DOWNLOAD="https://downloads.sf.net/lxde/lxpanel-0.10.1.tar.xz" +MD5SUM="c922d044789c3d7ae028f0e80dea18b0" DOWNLOAD_x86_64="" MD5SUM_x86_64="" REQUIRES="libfm" -- cgit v1.2.3