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

pkgname=gnome-commander
pkgver=1.2.8.1
pkgrel=1gv
arch=i486
source=("http://ftp.gnome.org/pub/GNOME/sources/gnome-commander/1.2/gnome-commander-1.2.8.1.tar.bz2")
docs=("readme" "install" "copying" "changelog" "authors" "news" "todo" "bugs")
url=http://www.nongnu.org/gcmd/

doinst() {
	# Update the scrollkeeper database (Remove stale pieces)
	if [ -x usr/bin/scrollkeeper-update ]; then
    	usr/bin/scrollkeeper-update > /dev/null 2>&1
	fi
}

slackdesc=\
(
#|-----handy-ruler------------------------------------------------------|
"GNOME Commander - a two-pane graphical filemanager for GNOME"
"GNOME Commander is a two-pane graphical filemanager for the Gnome"
"desktop environment. GNOME Commander aims to fulfill the demands of"
"more advanced users who like to focus on file management, their"
"work through special applications and running smart commands."
)


build() {
	cd $startdir/src/$pkgname-$pkgver
	./configure --prefix=/usr --libdir=/usr/lib${LIBDIRSUFFIX} --localstatedir=/var --sysconfdir=/etc --with-exiv2 --with-taglib --with-libchm --with-libgsf --enable-python --disable-scrollkeeper --disable-static
	make || return 1
	make install DESTDIR=$startdir/pkg
	mkdir -p $startdir/pkg/usr/share/icons/hicolor/48x48/apps
	( cd $startdir/pkg/usr/share/icons/hicolor/48x48/apps; ln -s ../../../../pixmaps/gnome-commander.png gnome-commander.png )
} 
