hardinfo: remove package

This package is severely outdated and requires GTK+ 2.
This commit is contained in:
Andrew J. Hesford 2024-09-19 13:32:36 -04:00
parent ec7341daa3
commit c278791914
4 changed files with 2 additions and 104 deletions

View File

@ -1,62 +0,0 @@
--- a/hardinfo.h 2023-04-14 16:50:28.324202873 -0400
+++ b/hardinfo.h 2023-04-14 16:51:11.470129493 -0400
@@ -64,9 +64,9 @@
};
/* String utility functions */
-inline void remove_quotes(gchar *str);
-inline char *strend(gchar *str, gchar chr);
-inline void remove_linefeed(gchar *str);
+void remove_quotes(gchar *str);
+char *strend(gchar *str, gchar chr);
+void remove_linefeed(gchar *str);
gchar *strreplace(gchar *string, gchar *replace, gchar new_char);
/* Widget utility functions */
@@ -91,7 +91,7 @@
gchar *find_program(gchar *program_name);
-inline gchar *size_human_readable(gfloat size);
+gchar *size_human_readable(gfloat size);
void nonblock_sleep(guint msec);
void open_url(gchar *url);
GSList *modules_load_selected(void);
--- a/util.c 16:50:36.611380820 -0400
+++ b/util.c 2023-04-14 16:51:25.031420828 -0400
@@ -111,7 +111,7 @@
plural(hours), minutes, plural(minutes));
}
-inline gchar *size_human_readable(gfloat size)
+gchar *size_human_readable(gfloat size)
{
if (size < KiB)
return g_strdup_printf("%.1f B", size);
@@ -123,7 +123,7 @@
return g_strdup_printf("%.1f GiB", size / GiB);
}
-inline char *strend(gchar * str, gchar chr)
+char *strend(gchar * str, gchar chr)
{
if (!str)
return NULL;
@@ -135,7 +135,7 @@
return str;
}
-inline void remove_quotes(gchar * str)
+void remove_quotes(gchar * str)
{
if (!str)
return;
@@ -146,7 +146,7 @@
strend(str, '"');
}
-inline void remove_linefeed(gchar * str)
+void remove_linefeed(gchar * str)
{
strend(str, '\n');
}

View File

@ -1,40 +0,0 @@
# Template file for 'hardinfo'
pkgname=hardinfo
version=0.5.1
revision=14
build_style=configure
configure_args="--prefix=/usr"
hostmakedepends="pkg-config which"
makedepends="gtk+-devel desktop-file-utils"
depends="desktop-file-utils"
short_desc="System information and benchmark tool"
maintainer="Orphaned <orphan@voidlinux.org>"
license="GPL-2.0-or-later"
homepage="https://www.berlios.de/software/hardinfo/"
distfiles="${SOURCEFORGE_SITE}/${pkgname}.berlios/${pkgname}-${version}.tar.bz2"
checksum=a0df6c0d7c92a7d20710b8eb551197398a965aaae053782b89a32a160b731b7a
lib32disabled=yes
post_patch() {
local _arch
_arch="${XBPS_TARGET_MACHINE%-*}"
if [ "$_arch" == aarch64 ]; then
_arch=armv8
fi
vsed -i -e "s|^CC =.*|CC = $CC|" \
-e "s|^CCSLOW =.*|CCSLOW = $CC -O0|" \
-e "s|-o hardinfo|$LDFLAGS &|" \
-e '1i GTK_LIBS += -lgmodule-2.0 -lm' \
Makefile.in
vsed -i -e "s|^LIBDIR=.*|LIBDIR=/usr/lib${XBPS_TARGET_WORDSIZE}|" \
-e "s|^PROC=.*|PROC=$_arch|" \
configure
vsed -i "s/\"lib\"/\"lib${XBPS_TARGET_WORDSIZE}\"/" binreloc.c
vsed -i '/distro_db/a { "/etc/hardinfo.distro", "Void" },' \
computer.h
}
post_install() {
vmkdir etc
echo "Void Linux" > ${DESTDIR}/etc/hardinfo.distro
}

View File

@ -1 +0,0 @@
ignore="*c"

View File

@ -1,6 +1,6 @@
# Template file for 'removed-packages'
pkgname=removed-packages
version=0.1.20240909
version=0.1.20240919
revision=1
build_style=meta
short_desc="Uninstalls packages removed from repository"
@ -204,6 +204,7 @@ replaces="
gx-go<=1.9.0_1
gx<=0.14.3_1
hangups<=0.4.18_2
hardinfo<=0.5.1_14
httperf<=0.9.0_9
icecat-i18n-ach<=78.6.1_1
icecat-i18n-af<=78.6.1_1