mirror of
https://github.com/void-linux/void-packages.git
synced 2025-07-29 08:52:56 +02:00
hardinfo: rebuild for metadata
This commit is contained in:
parent
4b1173ee4e
commit
64857e7569
2 changed files with 38 additions and 3 deletions
35
srcpkgs/hardinfo/patches/hardinfo-0.5.1.patch
Normal file
35
srcpkgs/hardinfo/patches/hardinfo-0.5.1.patch
Normal file
|
@ -0,0 +1,35 @@
|
||||||
|
From f11d5624be68e95e9c2a8c7779b182ef97b7973c Mon Sep 17 00:00:00 2001
|
||||||
|
From: =?UTF-8?q?Piotr=20W=C3=B3jcik?= <chocimier@tlen.pl>
|
||||||
|
Date: Fri, 30 Nov 2018 11:29:13 +0100
|
||||||
|
Subject: [PATCH] Fix inline strend
|
||||||
|
|
||||||
|
|
||||||
|
diff --git hardinfo.h hardinfo.h
|
||||||
|
index 9f52f63..6c7044d 100644
|
||||||
|
--- hardinfo.h
|
||||||
|
+++ hardinfo.h
|
||||||
|
@@ -65,7 +65,7 @@ struct _ModuleAbout {
|
||||||
|
|
||||||
|
/* String utility functions */
|
||||||
|
inline void remove_quotes(gchar *str);
|
||||||
|
-inline char *strend(gchar *str, gchar chr);
|
||||||
|
+char *strend(gchar *str, gchar chr);
|
||||||
|
inline void remove_linefeed(gchar *str);
|
||||||
|
gchar *strreplace(gchar *string, gchar *replace, gchar new_char);
|
||||||
|
|
||||||
|
diff --git util.c util.c
|
||||||
|
index 266ce4e..068889f 100644
|
||||||
|
--- util.c
|
||||||
|
+++ util.c
|
||||||
|
@@ -123,7 +123,7 @@ inline gchar *size_human_readable(gfloat size)
|
||||||
|
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;
|
||||||
|
--
|
||||||
|
2.19.1
|
||||||
|
|
|
@ -1,18 +1,18 @@
|
||||||
# Template file for 'hardinfo'
|
# Template file for 'hardinfo'
|
||||||
pkgname=hardinfo
|
pkgname=hardinfo
|
||||||
version=0.5.1
|
version=0.5.1
|
||||||
revision=4
|
revision=5
|
||||||
lib32disabled=yes
|
|
||||||
build_style=gnu-configure
|
build_style=gnu-configure
|
||||||
hostmakedepends="pkg-config"
|
hostmakedepends="pkg-config"
|
||||||
makedepends="gtk+-devel libsoup-devel desktop-file-utils"
|
makedepends="gtk+-devel libsoup-devel desktop-file-utils"
|
||||||
depends="desktop-file-utils"
|
depends="desktop-file-utils"
|
||||||
short_desc="A system information and benchmark tool"
|
short_desc="A system information and benchmark tool"
|
||||||
maintainer="Juan RP <xtraeme@voidlinux.eu>"
|
maintainer="Juan RP <xtraeme@voidlinux.eu>"
|
||||||
license="GPL-2"
|
license="GPL-2.0-or-later"
|
||||||
homepage="http://sourceforge.net/projects/hardinfo.berlios/"
|
homepage="http://sourceforge.net/projects/hardinfo.berlios/"
|
||||||
distfiles="${SOURCEFORGE_SITE}/${pkgname}.berlios/${pkgname}-${version}.tar.bz2"
|
distfiles="${SOURCEFORGE_SITE}/${pkgname}.berlios/${pkgname}-${version}.tar.bz2"
|
||||||
checksum=a0df6c0d7c92a7d20710b8eb551197398a965aaae053782b89a32a160b731b7a
|
checksum=a0df6c0d7c92a7d20710b8eb551197398a965aaae053782b89a32a160b731b7a
|
||||||
|
lib32disabled=yes
|
||||||
nocross=yes
|
nocross=yes
|
||||||
|
|
||||||
pre_configure() {
|
pre_configure() {
|
||||||
|
|
Loading…
Add table
Reference in a new issue