hardinfo.paketlendi

This commit is contained in:
milisarge 2017-06-11 00:12:17 +03:00
parent 641d514d98
commit be08a328c2
3 changed files with 38 additions and 0 deletions

View file

@ -0,0 +1,13 @@
diff -upNr hardinfo-0.4.2.2.orign/util.c hardinfo-0.4.2.2/util.c
--- hardinfo-0.4.2.2.orign/util.c 2007-07-20 16:45:08.000000000 +0200
+++ hardinfo-0.4.2.2/util.c 2007-07-26 10:15:32.000000000 +0200
@@ -996,7 +996,8 @@ gchar *h_strdup_cprintf(const gchar * fo
if (source) {
retn = g_strconcat(source, buffer, NULL);
g_free(buffer);
- g_free(source);
+ if(strlen(source))
+ g_free(source);
} else {
retn = buffer;
}

View file

@ -0,0 +1 @@
Milis Linux

View file

@ -0,0 +1,24 @@
# Description: A system information and benchmark tool for Linux systems
# URL: http://hardinfo.berlios.de/
# Packager: milisarge
# Depends on: gtk2
name=hardinfo
version=0.5.1
release=1
source=(http://sourceforge.net/projects/hardinfo.berlios/files/${name}-${version}.tar.bz2
fixsensors.patch
hardinfo.distro)
build() {
cd $name-$version
patch -p1 -i "${SRC}/fixsensors.patch"
sed -i 's|/usr/lib64|/usr/lib|' configure
sed -i 's|lib64|lib|' binreloc.c
sed -i 's|{ DB_PREFIX "debian_version", "deb" },|{ DB_PREFIX "hardinfo.distro", "arch" },{ DB_PREFIX "debian_version", "deb" },|' computer.h
./configure
make
make DESTDIR=$PKG install
rm -r $PKG/usr/local
install -D -m644 "${SRC}/hardinfo.distro" "${PKG}/etc/hardinfo.distro"
}