#Packager: Shador pkgname=mirage pkgver=0.9.5.2 pkgrel=1ab source=("http://download.berlios.de/mirageiv/mirage-${pkgver}.tar.bz2") sourcetemplate="http://gaia.homelinux.org/salix/slkbuilds/$pkgname/" docs=("readme" "translators" "copying" "changelog" "todo") url='http://mirageiv.berlios.de/' 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------------------------------------------------------| "$pkgname (a fast and simple image viewer)" "Mirage is a fast and simple GTK+ image viewer. Because it depends only" "on PyGTK, Mirage is ideal for users who wish to keep their computers" "lean while still having a clean image viewer." "Supported image formats: png, jpg, svg, xpm, gif, bmp, tiff, others" ) build() { set -e cd $startdir/src/$pkgname-$pkgver python setup.py install --prefix=/usr --root=$startdir/pkg || return 1 for size in 32x32 48x48 64x64 128x128; do install -vd $startdir/pkg/usr/share/icons/hicolor/$size/apps convert $startdir/pkg/usr/share/pixmaps/mirage.png -scale $size \ $startdir/pkg/usr/share/icons/hicolor/$size/apps/mirage.png done set +e }