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

pkgname=catfish-gtk3
pkgver=1.4.1
pkgrel=1gv
source=("https://launchpad.net/catfish-search/${pkgver%.*}/$pkgver/+download/catfish-$pkgver.tar.bz2" "icons.tar.gz")
docs=("readme" "install" "copying" "changelog" "authors" "news" "todo" "maintainers")
url=http://software.twotoasts.de/?page=catfish

slackdesc=\
(
#|-----handy-ruler------------------------------------------------------|
"catfish (GTK3 frontend for file search engines)"
"Catfish acts as a frontend for different file search engines. The"
"interface is intentionally lightweight and takes configuration"
"options from the command line. find, (s)locate, tracker and beagle are"
"supported as backends."
)


build() {
	cd $startdir/src/catfish-$pkgver

	python setup.py install \
		--root=$startdir/pkg \
		--optimize=1
	
	# Add png icons
	ICONSIZES="48 32 24 22 16"
	for i in $ICONSIZES; do
		mkdir -p $startdir/pkg/usr/share/icons/hicolor/$i\x$i/apps;
		mv $startdir/src/catfish-$i.png $startdir/pkg/usr/share/icons/hicolor/$i\x$i/apps/catfish.png;
	done;
}