#Maintainer: George Vlahavas (vlahavas~at~gmail~dot~com) pkgname=whaawmp pkgver=0.2.12.1 pkgrel=1gv arch=i486 source=("http://download.gna.org/whaawmp/$pkgver/whaawmp-$pkgver.tar.bz2" "icons.tar.gz") docs=("readme" "copying" "todo") url="http://home.gna.org/whaawmp/" options=('noautodotnew') 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------------------------------------------------------| "whaawmp - An audio/video player using gstreamer" "Whaaw! Media Player will play any audio/video files which gstreamer" "can play. It supports fullscreen mode, seeking, changing video colour" "settings and more. It is inteded to be a basic media player similar to" "totem." ) build() { cd $startdir/src/$pkgname-$pkgver ./setup.py build ./setup.py install --root=$startdir/pkg --install-platlib=/usr/lib${LIBDIRSUFFIX} sed -i -e "s/.svg//" $startdir/pkg/usr/share/applications/whaawmp.desktop # Copy icons to the right place ICONSIZES="48 32 24 16" for i in $ICONSIZES; do mkdir -p $startdir/pkg/usr/share/icons/hicolor/$i\x$i/apps; mv $startdir/src/$pkgname-$i.png $startdir/pkg/usr/share/icons/hicolor/$i\x$i/apps/$pkgname.png; done; mkdir -p $startdir/pkg/usr/share/icons/hicolor/scalable/apps mv $startdir/pkg/usr/share/pixmaps/$pkgname.svg $startdir/pkg/usr/share/icons/hicolor/scalable/apps rmdir $startdir/pkg/usr/share/pixmaps }