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

pkgname=htop
pkgver=0.9
pkgrel=1gv
source=("http://downloads.sourceforge.net/htop/htop-0.9.tar.gz")
docs=("readme" "install" "copying" "changelog" "authors" "news" "todo" "maintainers")
url=http://htop.sourceforge.net/

slackdesc=\
(
#|-----handy-ruler------------------------------------------------------|
"htop (Interactive text-mode process viewer for Linux)"
"htop is an interactive text-mode process viewer for Linux. It aims"
"to be a better 'top'. htop is Linux specific since it is based on"
"the Linux /proc filesystem. In htop you can scroll the list"
"vertically and horizontally to see all processes and full command"
"lines, can kill a process without typing the process number,"
"renice a process without typing the process number or the priority"
"value and you can kill multiple processes at once."
)


build() {
	cd $startdir/src/$pkgname-$pkgver
	./configure --prefix=/usr --libdir=/usr/lib${LIBDIRSUFFIX} --localstatedir=/var --sysconfdir=/etc --mandir=/usr/man --disable-static --enable-unicode --enable-taskstats --build=$arch-slackware-linux
	make || return 1
	make install DESTDIR=$startdir/pkg
	
	mkdir -p $startdir/pkg/usr/share/icons/hicolor/32x32/apps
	mv $startdir/pkg/usr/share/pixmaps/htop.png $startdir/pkg/usr/share/icons/hicolor/32x32/apps
	rmdir $startdir/pkg/usr/share/pixmaps
}