diff options
Diffstat (limited to 'community/hardinfo')
-rw-r--r-- | community/hardinfo/PKGBUILD | 33 | ||||
-rw-r--r-- | community/hardinfo/fixsensors.patch | 13 | ||||
-rw-r--r-- | community/hardinfo/hardinfo.distro | 1 |
3 files changed, 47 insertions, 0 deletions
diff --git a/community/hardinfo/PKGBUILD b/community/hardinfo/PKGBUILD new file mode 100644 index 000000000..432b9bda3 --- /dev/null +++ b/community/hardinfo/PKGBUILD @@ -0,0 +1,33 @@ +# $Id: PKGBUILD 70023 2012-04-28 09:24:14Z allan $ +# Maintainer: Eric BĂ©langer <eric@archlinux.org> + +pkgname=hardinfo +pkgver=0.5.1 +pkgrel=5 +pkgdesc="A system information and benchmark tool." +arch=('i686' 'x86_64') +url="http://hardinfo.berlios.de/wiki/index.php/Main_Page" +license=('GPL2') +depends=('gtk2' 'libsoup') +options=('!emptydirs') +source=(http://download.berlios.de/hardinfo/${pkgname}-${pkgver}.tar.bz2 \ + fixsensors.patch hardinfo.distro) +sha1sums=('983f0445aa60e02156bc5a5eaedeffb30b8e4d64' + 'd2151dce76dca238102937d0e15541f172bca530' + '4c31cbbfbdeb48593641ff600c8d4fb7bda2b01c') + +build() { + cd "${srcdir}/${pkgname}-${pkgver}" + patch -p1 < ../fixsensors.patch + sed -i 's|/usr/lib64|/usr/lib|' configure + ./configure --prefix=/usr + 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 + make +} + +package() { + cd "${srcdir}/${pkgname}-${pkgver}" + make DESTDIR="${pkgdir}" install + install -D -m644 ../hardinfo.distro "${pkgdir}/etc/hardinfo.distro" +} diff --git a/community/hardinfo/fixsensors.patch b/community/hardinfo/fixsensors.patch new file mode 100644 index 000000000..812c29458 --- /dev/null +++ b/community/hardinfo/fixsensors.patch @@ -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; + } diff --git a/community/hardinfo/hardinfo.distro b/community/hardinfo/hardinfo.distro new file mode 100644 index 000000000..850183eeb --- /dev/null +++ b/community/hardinfo/hardinfo.distro @@ -0,0 +1 @@ +Arch Linux |