summaryrefslogtreecommitdiffstats
path: root/abs/extra/community/video4fuze/PKGBUILD
blob: 35c1e8540a21e18483f9e50b1802b26b76492c53 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
# Contributor: Michael Hanson <hansonorders@verizon.net>
# Maintainer: Michael Hanson <hansonorders@verizon.net>
pkgname=video4fuze
pkgver=0.6
pkgrel=1
pkgdesc="A tool to make videos compatable with the San Disk Sana Fuze media player"
arch=('i686' 'x86_64')
url="http://code.google.com/p/video4fuze"
license=('GPL3' 'CC-BY-SA-3.0')
depends=('fuzemux' 'python2>=2.5' 'qt>=4.5' 'pyqt>=4.5' 'python-imaging' 'mplayer' 'ffmpeg-svn')
optdepends=('xterm')
source=("http://${pkgname}.googlecode.com/files/${pkgname}-${pkgver}%2B.tar.gz")
provides=('video4fuze')
replaces=('video4fuze-svn')
install=video4fuze.install

build() {
  cd ${srcdir}/${pkgname}-${pkgver}+

  for file in GUI/*.py *.py *.pyw ; do
    sed -i 's_#!/usr/bin/env python_#!/usr/bin/env python2_' ${file}
  done

  sed -i 's/^python/python2/g' dist/*

  lrelease video4fuze_e4x.pro

  python2 setup.py install --root="$pkgdir" || return 1
}

package() {
  cd ${srcdir}/${pkgname}-${pkgver}+
  install -D -m644 README.txt ${pkgdir}/usr/share/doc/video4fuze/README || return 1
  chmod 755 ${pkgdir}/usr/share/video4fuze/*.py || return 1
  chmod 755 ${pkgdir}/usr/share/video4fuze/*.pyw || return 1
  chmod 755 ${pkgdir}/usr/share/video4fuze/GUI/*.py || return 1
}
md5sums=('f19250f2e166e10e5b115e8bffdfee35')