From fcce4e670cd2d81990b3f50e8a682b44d40a73cc Mon Sep 17 00:00:00 2001 From: André Fabian Silva Delgado Date: Tue, 2 Sep 2014 06:41:22 -0300 Subject: remove parabola suffix and add complex pkgrel on the packages --- libre/hardinfo/PKGBUILD | 40 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 libre/hardinfo/PKGBUILD (limited to 'libre/hardinfo/PKGBUILD') diff --git a/libre/hardinfo/PKGBUILD b/libre/hardinfo/PKGBUILD new file mode 100644 index 000000000..27913f3f0 --- /dev/null +++ b/libre/hardinfo/PKGBUILD @@ -0,0 +1,40 @@ +# $Id: PKGBUILD 115005 2014-07-05 03:31:29Z eric $ +# Maintainer (Arch): Eric Bélanger +# Contributor: Márcio Silva + +pkgname=hardinfo +pkgver=0.5.1 +pkgrel=6.parabola1 +pkgdesc="A system information and benchmark tool (Parabola rebranded)" +arch=('i686' 'x86_64' 'mips64el') +url="http://sourceforge.net/projects/hardinfo.berlios/" +license=('GPL2') +depends=('gtk2' 'libsoup') +options=('!emptydirs') +replaces=(${pkgname}-parabola) +conflicts=(${pkgname}-parabola) +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" +} -- cgit v1.2.3-54-g00ecf