#Maintainer: Dimitris Tzemos <dijemos~at~gmail~dot~com>

pkgname=hardinfo
pkgver=0.5.1
pkgrel=1dj
source=("http://sourceforge.net/projects/hardinfo.berlios/files/${pkgname}-${pkgver}.tar.bz2" "makefile.patch")
sourcetemplate=http://people.salixos.org/djemos/salix/$pkgname
docs=("TODO" "LICENSE")
url="http://sourceforge.net/projects/hardinfo.berlios/"

slackdesc=\
(
#|-----handy-ruler------------------------------------------------------|
"hardinfo (GTK+2 system information and benchmark tool)"
"Hardinfo can gather information about your system's hardware"
"and operating system, perform benchmarks, and generate printable"
"reports either in HTML or in plain text formats."
""
"Homepage: http://sourceforge.net/projects/hardinfo.berlios/"
)


build() {
	cd $SRC/$pkgname-$pkgver
	patch -p1 < $SRC/makefile.patch || return 1
  
	./configure \
  --prefix=/usr \
  --libdir=/usr/lib${LIBDIRSUFFIX} \
  --sysconfdir=/etc \
  --localstatedir=/var \
  --mandir=/usr/man \
  --build=$arch-slackware-linux || return 1

	make -j $numjobs || return 1
	make install DESTDIR=$PKG || return 1
} 

doinst() {
if [ -a /lib64/libc.so.6 ]; then
	ln -sf /lib64/libc.so.6 /lib/libc.so.6
fi
}
