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

pkgname=comix
pkgver=4.0.4
pkgrel=1gv
arch=i486
source=(http://downloads.sourceforge.net/comix/comix-$pkgver.tar.gz)
docs=("README" "install" "COPYING" "Changelog" "authors" "news" "todo")
url="http://comix.sourceforge.net/"

doinst() {
	#update the mime desktop database
	if [ -x usr/bin/update-desktop-database ]; then
		usr/bin/update-desktop-database -q
	fi
	# update the mime database
	if [ -x usr/bin/update-mime-database ]; then
		usr/bin/update-mime-database usr/share/mime > /dev/null 2>&1
	fi
}

slackdesc=\
(
#|-----handy-ruler------------------------------------------------------|
"comix (comic book viewer)"
"Comix is a user-friendly, customizable image viewer. It is"
"specifically designed to handle comic books, but also serves as a"
"generic viewer. It reads images in ZIP, RAR or tar archives"
"(also gzip or bzip2 compressed) as well as plain image files. It is"
"written in Python and uses GTK+ through the PyGTK bindings."
)

build() {
	cd $startdir/src/$pkgname-$pkgver
	mkdir -p $startdir/pkg/usr
	python install.py install --dir $startdir/pkg/usr --no-mime
}