# Maintainer: Luis Henrique # Mandatory pkgname=openshot pkgver=1.2.2 pkgrel=1lm source=("http://launchpad.net/openshot/1.2/1.2.2/+download/openshot-1.2.2.tar.gz" "openshot.png") # Optional docs=("AUTHORS" "COPYING" "README") url="http://www.openshot.org" slackdesc=\ ( #|-----handy-ruler------------------------------------------------------| "openshot (video editor)" "OpenShot Video Editor is a free, open-source video editor for Linux" "licensed under the GPL version 3.0." ) build() { cd $startdir/src/$pkgname-$pkgver python setup.py install --root=$startdir/pkg # Put man pages in the right place mv $startdir/pkg/usr/share/man $startdir/pkg/usr/ rm -rf $startdir/pkg/usr/share/man # Install icons in the right place mkdir -p $startdir/pkg/usr/share/icons/hicolor/48x48/apps mkdir -p $startdir/pkg/usr/share/icons/hicolor/scalable/apps cp $startdir/src/openshot.png $startdir/pkg/usr/share/icons/hicolor/48x48/apps mv $startdir/pkg/usr/share/pixmaps/openshot.svg $startdir/pkg/usr/share/icons/hicolor/scalable/apps rm -rf $startdir/pkg/usr/share/pixmaps } 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 }