#Maintainer: George Vlahavas (vlahavas~at~gmail~dot~com)

pkgname=libgtop
pkgver=2.28.4
pkgrel=1rl
source=("http://ftp.gnome.org/pub/GNOME/sources/libgtop/2.28/libgtop-2.28.4.tar.xz")
docs=("readme" "install" "copying" "changelog" "authors" "news" "todo")
url=www.gnome.org
options=('noautodotnew')

slackdesc=\
(
#|-----handy-ruler------------------------------------------------------|
"libgtop (System Information Library)"
"libgtop is a library that fetches information about the running system"
"such as cpu and memory usage, active processes etc. The information is"
"taken directly from the /proc filesystem."
)


build() {
	cd $startdir/src/$pkgname-$pkgver
	./configure --prefix=/usr \
		--libdir=/usr/lib${LIBDIRSUFFIX} \
		--localstatedir=/var \
		--sysconfdir=/etc \
		--mandir=/usr/man \
		--infodir=/usr/info \
		--disable-static \
		--disable-introspection \
		--build=$arch-slackware-linux
	make || return 1
	make install DESTDIR=$startdir/pkg
	rm -rf $startdir/pkg/usr/share/gtk-doc
}