1 # Maintainer: masutu <masutu dot arch at gmail dot com>
5 pkgdesc="A free video transcoding software written in python, for easy conversion of videos into formats playable on Smarthones, Tablets, MIDs, Portable Media Players, etc."
7 url="http://vidrop.learnfree.eu/"
9 depends=(mencoder mplayer pygtk)
10 source=("http://download.learnfree.eu/vidrop/$pkgname-$pkgver-linux.tar.gz")
11 md5sums=('2f52d9c24d266745a2e33b14688b44f6')
17 for file in vidrop.py vidrop-simple.py; do
18 sed -i 's_#!/usr/bin/env python_#!/usr/bin/env python2_;s_python "%s"_python2 "%s"_' $file
21 install -m 0755 -d $pkgdir/usr/bin
22 install -m 0755 -d $pkgdir/usr/share/$pkgname/presets
23 install -m 0755 -d $pkgdir/usr/share/locale/bg/LC_MESSAGES
24 install -m 0755 *.py $pkgdir/usr/share/$pkgname
25 install -m 0644 facebook.png vidrop.glade vidrop-logo.png $pkgdir/usr/share/$pkgname
26 install -m 0644 presets/* $pkgdir/usr/share/$pkgname/presets
27 install -m 0644 locale/bg/LC_MESSAGES/vidrop.mo $pkgdir/usr/share/locale/bg/LC_MESSAGES
29 cat >$pkgdir/usr/bin/vidrop <<EOF
35 chmod 0755 $pkgdir/usr/bin/vidrop
37 cat >$pkgdir/usr/bin/vidrop-simple <<EOF
40 ./vidrop-simple.py "$@"
42 chmod 0755 $pkgdir/usr/bin/vidrop-simple
45 # vim:set ts=2 sw=2 et: