From 9c2e3309bbcdc7423065c5e918d57d9bf9974489 Mon Sep 17 00:00:00 2001 From: Juan RP Date: Tue, 20 Aug 2013 21:08:03 +0200 Subject: [PATCH] New package: hardinfo-0.5.1 (close #142). --- srcpkgs/hardinfo/template | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 srcpkgs/hardinfo/template diff --git a/srcpkgs/hardinfo/template b/srcpkgs/hardinfo/template new file mode 100644 index 00000000000..321bad0bb60 --- /dev/null +++ b/srcpkgs/hardinfo/template @@ -0,0 +1,33 @@ +# Template file for 'hardinfo' +pkgname=hardinfo +version=0.5.1 +revision=1 +hostmakedepends="pkg-config which" +makedepends="gtk+-devel libsoup-devel desktop-file-utils" +short_desc="A system information and benchmark tool" +maintainer="Juan RP " +license="GPL-2" +homepage="http://hardinfo.berlios.de/HomePage" +distfiles="http://download.berlios.de/hardinfo/hardinfo-${version}.tar.bz2" +checksum=a0df6c0d7c92a7d20710b8eb551197398a965aaae053782b89a32a160b731b7a + +do_build() { + 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", "Void" },{ DB_PREFIX "debian_version", "deb" },|' computer.h + make ${makejobs} +} + +do_install() { + make DESTDIR=${DESTDIR} install + vmkdir etc + echo "Void Linux" > ${DESTDIR}/etc/hardinfo.distro +} + +hardinfo_package() { + depends="desktop-file-utils" + pkg_install() { + vmove all + } +}