mirror of
https://github.com/void-linux/void-packages.git
synced 2025-06-05 06:33:50 +02:00
hardinfo: revbump for remove_linefeed fixes
This commit is contained in:
parent
e242882333
commit
d46eda4b92
2 changed files with 23 additions and 17 deletions
|
@ -1,19 +1,19 @@
|
||||||
diff --git hardinfo.h hardinfo.h
|
--- a/hardinfo.h 2023-04-14 16:50:28.324202873 -0400
|
||||||
index 9f52f63..aeb84d9 100644
|
+++ b/hardinfo.h 2023-04-14 16:51:11.470129493 -0400
|
||||||
--- a/hardinfo.h
|
@@ -64,9 +64,9 @@
|
||||||
+++ b/hardinfo.h
|
|
||||||
@@ -64,8 +64,8 @@ struct _ModuleAbout {
|
|
||||||
};
|
};
|
||||||
|
|
||||||
/* String utility functions */
|
/* String utility functions */
|
||||||
-inline void remove_quotes(gchar *str);
|
-inline void remove_quotes(gchar *str);
|
||||||
-inline char *strend(gchar *str, gchar chr);
|
-inline char *strend(gchar *str, gchar chr);
|
||||||
|
-inline void remove_linefeed(gchar *str);
|
||||||
+void remove_quotes(gchar *str);
|
+void remove_quotes(gchar *str);
|
||||||
+char *strend(gchar *str, gchar chr);
|
+char *strend(gchar *str, gchar chr);
|
||||||
inline void remove_linefeed(gchar *str);
|
+void remove_linefeed(gchar *str);
|
||||||
gchar *strreplace(gchar *string, gchar *replace, gchar new_char);
|
gchar *strreplace(gchar *string, gchar *replace, gchar new_char);
|
||||||
|
|
||||||
@@ -91,7 +91,7 @@ gpointer __idle_free(gpointer ptr, gchar *f, gint l);
|
/* Widget utility functions */
|
||||||
|
@@ -91,7 +91,7 @@
|
||||||
|
|
||||||
|
|
||||||
gchar *find_program(gchar *program_name);
|
gchar *find_program(gchar *program_name);
|
||||||
|
@ -22,11 +22,9 @@ index 9f52f63..aeb84d9 100644
|
||||||
void nonblock_sleep(guint msec);
|
void nonblock_sleep(guint msec);
|
||||||
void open_url(gchar *url);
|
void open_url(gchar *url);
|
||||||
GSList *modules_load_selected(void);
|
GSList *modules_load_selected(void);
|
||||||
diff --git util.c util.c
|
--- a/util.c 16:50:36.611380820 -0400
|
||||||
index 266ce4e..e6c81fd 100644
|
+++ b/util.c 2023-04-14 16:51:25.031420828 -0400
|
||||||
--- a/util.c
|
@@ -111,7 +111,7 @@
|
||||||
+++ b/util.c
|
|
||||||
@@ -111,7 +111,7 @@ gchar *seconds_to_string(unsigned int seconds)
|
|
||||||
plural(hours), minutes, plural(minutes));
|
plural(hours), minutes, plural(minutes));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -35,7 +33,7 @@ index 266ce4e..e6c81fd 100644
|
||||||
{
|
{
|
||||||
if (size < KiB)
|
if (size < KiB)
|
||||||
return g_strdup_printf("%.1f B", size);
|
return g_strdup_printf("%.1f B", size);
|
||||||
@@ -123,7 +123,7 @@ inline gchar *size_human_readable(gfloat size)
|
@@ -123,7 +123,7 @@
|
||||||
return g_strdup_printf("%.1f GiB", size / GiB);
|
return g_strdup_printf("%.1f GiB", size / GiB);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -44,7 +42,7 @@ index 266ce4e..e6c81fd 100644
|
||||||
{
|
{
|
||||||
if (!str)
|
if (!str)
|
||||||
return NULL;
|
return NULL;
|
||||||
@@ -135,7 +135,7 @@ inline char *strend(gchar * str, gchar chr)
|
@@ -135,7 +135,7 @@
|
||||||
return str;
|
return str;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -53,4 +51,12 @@ index 266ce4e..e6c81fd 100644
|
||||||
{
|
{
|
||||||
if (!str)
|
if (!str)
|
||||||
return;
|
return;
|
||||||
|
@@ -146,7 +146,7 @@
|
||||||
|
strend(str, '"');
|
||||||
|
}
|
||||||
|
|
||||||
|
-inline void remove_linefeed(gchar * str)
|
||||||
|
+void remove_linefeed(gchar * str)
|
||||||
|
{
|
||||||
|
strend(str, '\n');
|
||||||
|
}
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
# Template file for 'hardinfo'
|
# Template file for 'hardinfo'
|
||||||
pkgname=hardinfo
|
pkgname=hardinfo
|
||||||
version=0.5.1
|
version=0.5.1
|
||||||
revision=12
|
revision=13
|
||||||
build_style=gnu-configure
|
build_style=gnu-configure
|
||||||
hostmakedepends="pkg-config which"
|
hostmakedepends="pkg-config which"
|
||||||
makedepends="gtk+-devel libsoup-devel desktop-file-utils"
|
makedepends="gtk+-devel libsoup-devel desktop-file-utils"
|
||||||
|
@ -9,7 +9,7 @@ depends="desktop-file-utils"
|
||||||
short_desc="System information and benchmark tool"
|
short_desc="System information and benchmark tool"
|
||||||
maintainer="Orphaned <orphan@voidlinux.org>"
|
maintainer="Orphaned <orphan@voidlinux.org>"
|
||||||
license="GPL-2.0-or-later"
|
license="GPL-2.0-or-later"
|
||||||
homepage="http://sourceforge.net/projects/hardinfo.berlios/"
|
homepage="https://www.berlios.de/software/hardinfo/"
|
||||||
distfiles="${SOURCEFORGE_SITE}/${pkgname}.berlios/${pkgname}-${version}.tar.bz2"
|
distfiles="${SOURCEFORGE_SITE}/${pkgname}.berlios/${pkgname}-${version}.tar.bz2"
|
||||||
checksum=a0df6c0d7c92a7d20710b8eb551197398a965aaae053782b89a32a160b731b7a
|
checksum=a0df6c0d7c92a7d20710b8eb551197398a965aaae053782b89a32a160b731b7a
|
||||||
lib32disabled=yes
|
lib32disabled=yes
|
||||||
|
|
Loading…
Add table
Reference in a new issue