6 pkgdesc="DVD authoring program with nice and clean GUI"
8 url="http://www.bombono.org"
10 depends=('gtk2>=2.8' 'gtkmm>=2.4' 'mjpegtools>=1.8.0' 'ffmpeg' 'libdvdread' 'dvdauthor'
11 'dvd+rw-tools' 'twolame' 'libxml++' 'boost>=1.47' 'enca' 'scons>=0.96' 'cdrkit'
12 'hicolor-icon-theme' 'desktop-file-utils')
13 optdepends=('gvfs: web browser integration')
14 conflicts=('bombono-dvd-git')
15 source=(http://downloads.sourceforge.net/bombono/$pkgname-$pkgver.tar.bz2
17 install=bombono-dvd.install
18 md5sums=('26cb326b00e0c0dfb453f92d3953a945'
19 '79b06bab4f8e1dc1e8caa17564070174')
22 cd "$srcdir/$pkgname-$pkgver"
23 patch -p1 -i "$srcdir"/ffmpeg_arch.diff
25 for file in $(find . -name '*.py' -print); do
26 sed -i 's_#!.*/usr/bin/python_#!/usr/bin/python2_' $file
27 sed -i 's_#!.*/usr/bin/env.*python_#!/usr/bin/env python2_' $file
29 for file in $(find . -name 'SConscript*' -print); do
30 sed -i 's_#!.*/usr/bin/python_#!/usr/bin/python2_' $file
31 sed -i 's_#!.*/usr/bin/env.*python_#!/usr/bin/env python2_' $file
33 sed -i -e 's_#!.*/usr/bin/env.*python_#!/usr/bin/env python2_' Autoconfig
34 sed -i -e 's_#!.*/usr/bin/env.*python_#!/usr/bin/env python2_' SConstruct
35 sed -i -e 's_#!.*/usr/bin/env.*python_#!/usr/bin/env python2_' resources/scons_authoring/SConstruct
36 sed -i -e 's_#!.*/usr/bin/env.*python_#!/usr/bin/env python2_' resources/scons_authoring/menu_SConscript
38 scons PREFIX="/usr" DESTDIR="$pkgdir" CPPFLAGS='-DBOOST_FILESYSTEM_VERSION=2' USE_EXT_BOOST=1
42 cd "$srcdir/$pkgname-$pkgver"
44 scons PREFIX="/usr" DESTDIR="$pkgdir" install