updated on Thu Jan 12 04:00:44 UTC 2012
[aur-mirror.git] / vidrop / PKGBUILD
blob70c5d93cb53a4f06743ca07c04495c36ce3e5ab0
1 # Maintainer: masutu <masutu dot arch at gmail dot com>
2 pkgname=vidrop
3 pkgver=0.6.8
4 pkgrel=1
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."
6 arch=(any)
7 url="http://vidrop.learnfree.eu/"
8 license=('GPL')
9 depends=(mencoder mplayer pygtk)
10 source=("http://download.learnfree.eu/vidrop/$pkgname-$pkgver-linux.tar.gz")
11 md5sums=('2f52d9c24d266745a2e33b14688b44f6')
13 package() {
14   cd $srcdir/
16   # python2 fix
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
19   done
20   
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
28   
29   cat >$pkgdir/usr/bin/vidrop <<EOF
30 #!/bin/bash
31 cd /usr/share/vidrop/
32 echo $@
33 ./vidrop.py "$@"
34 EOF
35   chmod 0755 $pkgdir/usr/bin/vidrop
37   cat >$pkgdir/usr/bin/vidrop-simple <<EOF
38 #!/bin/bash
39 cd /usr/share/vidrop/
40 ./vidrop-simple.py "$@"
41 EOF
42   chmod 0755 $pkgdir/usr/bin/vidrop-simple
45 # vim:set ts=2 sw=2 et: