updated on Sun Jan 15 08:01:04 UTC 2012
[aur-mirror.git] / openshot-bzr / PKGBUILD
blob6ca014265f49970c8913abc273e17e923a1ae741
1 # Contributor: Jari 'jase' Ylimainen <jari [at] ylimainen.fi>
2 # Based on Asa Marco's openshot package
4 pkgname=openshot-bzr
5 pkgver=484
6 pkgrel=1
7 pkgdesc="Development branch of openshot non-linear videoeditor."
8 arch=('i686' 'x86_64')
9 url="http://www.openshotvideo.com"
10 license=('GPL')
11 depends=('mlt-python-bindings' 'pygoocanvas' 'sdl' 'librsvg' 'pyxdg' 'python2')
12 optdepends=('dvgrab: for IEEE digital sources' 'libquicktime' 'libavc1394' 'faac' 'jack-audio-connection-kit' 'jack-rack' 'ladspa')
13 provides=('openshot')
14 makedepends=('bzr')
16 _bzrbranch=lp:openshot
17 _bzrmod=openshot
19 build() {
20    cd ${srcdir}
22   msg "Connecting to the server...."
24   if [ ! -d ./${_bzrmod} ]; then
25     bzr co ${_bzrbranch} ${_bzrmod}
26   else
27     bzr up ${_bzrmod}
28   fi
30   msg "BZR checkout done or server timeout"
31   msg "Starting make..."
33   [ -d ./${_bzrmod}-build ] && rm -rf ./${_bzrmod}-build
34   rm -rf ./${_bzrmod}-build
35   cp -r ./${_bzrmod} ./${_bzrmod}-build
36   cd ./${_bzrmod}-build
38   python2 setup.py install --prefix=/usr --root="$pkgdir" --optimize=1 || return 1