void-packages/srcpkgs/hardinfo/template

31 lines
1.0 KiB
Bash

# Template file for 'hardinfo'
pkgname=hardinfo
version=0.5.1
revision=4
lib32disabled=yes
build_style=gnu-configure
hostmakedepends="pkg-config"
makedepends="gtk+-devel libsoup-devel desktop-file-utils"
depends="desktop-file-utils"
short_desc="A system information and benchmark tool"
maintainer="Juan RP <xtraeme@voidlinux.eu>"
license="GPL-2"
homepage="http://sourceforge.net/projects/hardinfo.berlios/"
distfiles="${SOURCEFORGE_SITE}/${pkgname}.berlios/${pkgname}-${version}.tar.bz2"
checksum=a0df6c0d7c92a7d20710b8eb551197398a965aaae053782b89a32a160b731b7a
nocross=yes
pre_configure() {
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", "Void" },{ DB_PREFIX "debian_version", "deb" },|' computer.h
}
do_build() {
make libdir="${XBPS_CROSS_BASE}/usr/lib" ${makejobs}
}
do_install() {
make libdir="${XBPS_CROSS_BASE}/usr/lib" DESTDIR=${DESTDIR} install
vmkdir etc
echo "Void Linux" > ${DESTDIR}/etc/hardinfo.distro
}