#Maintainer: George Vlahavas (vlahavas~at~gmail~dot~com) pkgname=oggconvert pkgver=0.3.3 pkgrel=1gv source=("http://oggconvert.tristanb.net/releases/0.3.3/oggconvert-0.3.3.tar.gz" "icons.tar.gz") docs=("readme" "install" "copying" "changelog" "authors" "news" "todo" "maintainers") url=http://oggconvert.tristanb.net/ slackdesc=\ ( #|-----handy-ruler------------------------------------------------------| "oggconvert (convert audio and video files to free formats)" "OggConvert is a small, open source utility for converting audio and" "video files into the Vorbis audio format, and the Theora and Dirac" "video formats. You will need to have the schroedinger package" "installed for encoding to Dirac." ) build() { cd $startdir/src/$pkgname-$pkgver python setup.py install --prefix=/usr --root=$startdir/pkg mkdir -p $startdir/pkg/usr/man/man1 cp data/oggconvert.1 $startdir/pkg/usr/man/man1 # Copy icons to the right place 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/$pkgname-$i.png $startdir/pkg/usr/share/icons/hicolor/$i\x$i/apps/$pkgname.png; done; # oggconverts needs a /usr/share/pixmaps/oggconvert.svg file to run mkdir -p $startdir/pkg/usr/share/icons/hicolor/scalable/apps mv $startdir/pkg/usr/share/pixmaps/oggconvert.svg $startdir/pkg/usr/share/icons/hicolor/scalable/apps cd $startdir/pkg/usr/share/pixmaps ln -s ../icons/hicolor/scalable/apps/oggconvert.svg oggconvert.svg }