diff options
author | André Fabian Silva Delgado <emulatorman@parabola.nu> | 2014-08-26 07:04:44 -0300 |
---|---|---|
committer | André Fabian Silva Delgado <emulatorman@parabola.nu> | 2014-08-26 07:04:44 -0300 |
commit | 224ff53c78c2e8df8c6ac3f5b84964a9fd228ee3 (patch) | |
tree | 21f0f00d6ca7a856bde8310b4558a527717a6d85 /libre/hardinfo-parabola | |
parent | 317a3b1d822c252c9f341170cf47a85d72cddde6 (diff) |
add parabola suffix on some packages
Diffstat (limited to 'libre/hardinfo-parabola')
-rw-r--r-- | libre/hardinfo-parabola/PKGBUILD | 42 | ||||
-rw-r--r-- | libre/hardinfo-parabola/fixsensors.patch | 13 | ||||
-rw-r--r-- | libre/hardinfo-parabola/hardinfo.distro | 1 |
3 files changed, 56 insertions, 0 deletions
diff --git a/libre/hardinfo-parabola/PKGBUILD b/libre/hardinfo-parabola/PKGBUILD new file mode 100644 index 000000000..1ed1b63dc --- /dev/null +++ b/libre/hardinfo-parabola/PKGBUILD @@ -0,0 +1,42 @@ +# $Id: PKGBUILD 115005 2014-07-05 03:31:29Z eric $ +# Maintainer (Arch): Eric Bélanger <eric@archlinux.org> +# Contributor: Márcio Silva <coadde@parabola.nu> + +_pkgname=hardinfo +pkgname=hardinfo-parabola +pkgver=0.5.1 +pkgrel=6 +pkgdesc="A system information and benchmark tool (Parabola rebranded)" +arch=('i686' 'x86_64') +url="http://sourceforge.net/projects/hardinfo.berlios/" +license=('GPL2') +depends=('gtk2' 'libsoup') +options=('!emptydirs') +replaces=($_pkgname) +conflicts=($_pkgname) +provides=($_pkgname=$pkgver) +source=(http://sourceforge.net/projects/hardinfo.berlios/files/${_pkgname}-${pkgver}.tar.bz2 + fixsensors.patch hardinfo.distro) +sha1sums=('983f0445aa60e02156bc5a5eaedeffb30b8e4d64' + 'd2151dce76dca238102937d0e15541f172bca530' + '9425e09191cd3a365a3afce57ca1973a6439fa57') + +prepare() { + cd ${_pkgname}-${pkgver} + patch -p1 -i "${srcdir}/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", "parabola" },{ DB_PREFIX "debian_version", "deb" },|' computer.h +} + +build() { + cd ${_pkgname}-${pkgver} + ./configure --prefix=/usr + make +} + +package() { + cd ${_pkgname}-${pkgver} + make DESTDIR="${pkgdir}" install + install -D -m644 "${srcdir}/hardinfo.distro" "${pkgdir}/etc/hardinfo.distro" +} diff --git a/libre/hardinfo-parabola/fixsensors.patch b/libre/hardinfo-parabola/fixsensors.patch new file mode 100644 index 000000000..812c29458 --- /dev/null +++ b/libre/hardinfo-parabola/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/libre/hardinfo-parabola/hardinfo.distro b/libre/hardinfo-parabola/hardinfo.distro new file mode 100644 index 000000000..cf378523a --- /dev/null +++ b/libre/hardinfo-parabola/hardinfo.distro @@ -0,0 +1 @@ +Parabola GNU/Linux-Libre |