summaryrefslogtreecommitdiff
path: root/libre/hardinfo/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'libre/hardinfo/PKGBUILD')
-rw-r--r--libre/hardinfo/PKGBUILD34
1 files changed, 34 insertions, 0 deletions
diff --git a/libre/hardinfo/PKGBUILD b/libre/hardinfo/PKGBUILD
new file mode 100644
index 000000000..2de9e5887
--- /dev/null
+++ b/libre/hardinfo/PKGBUILD
@@ -0,0 +1,34 @@
+# $Id$
+# Maintainer: Eric Bélanger <eric@archlinux.org>
+# Contributor (Parabola): Márcio Silva <coadde@lavabit.com>
+
+pkgname=hardinfo
+pkgver=0.5.1
+pkgrel=5.1
+pkgdesc="A system information and benchmark tool (Parabola rebranded)"
+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'
+ '9425e09191cd3a365a3afce57ca1973a6439fa57')
+
+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", "parabola" },{ 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"
+}