1 # Contributor: Matthew Bauer <mjbauer95@gmail.com>
2 # Contributor: flamelab
6 pkgdesc="Gnash is an open source flashplayer."
8 url="http://www.gnu.org/software/gnash/"
10 depends=('agg' 'atk' 'libxml2' 'curl' 'libtool' 'ffmpeg' 'boost' 'pango' 'libxi' 'libva')
13 provides=(gnash-common gnash-gtk)
14 conflicts=(gnash-common gnash-gtk)
16 _bzrbranch=http://bzr.savannah.gnu.org/r/gnash/trunk
22 msg "Connecting to the server...."
24 if [ ! -d ./${_bzrmod} ]; then
25 bzr co ${_bzrbranch} ${_bzrmod}
30 msg "BZR checkout done or server timeout"
31 msg "Starting make..."
33 [ -d ./${_bzrmod}-build ] && rm -rf ./${_bzrmod}-build
34 cp -r ./${_bzrmod} ./${_bzrmod}-build
38 sed -i 's/liblibva/libva/g' configure
39 # sed -i 's/use_libva=no/use_libva=yes/g' configure.ac
40 # sed -i 's/use_vliba_x11=no/use_vliba_x11=yes/g' configure.ac
41 LIBVA_CONFIG=/usr/include/va
42 ./configure --prefix=/usr --sysconfdir=/etc \
43 --with-npapi-plugindir=/usr/lib/mozilla/plugins \
47 --enable-renderer=agg \
48 --enable-media=ffmpeg \
56 cd $srcdir/${_bzrmod}-build
57 make DESTDIR=$pkgdir install
58 mkdir -p ${pkgdir}/usr/lib/mozilla/plugins/
59 install -Dm644 $srcdir/${_bzrmod}-build/plugin/npapi/.libs/libgnashplugin.so ${pkgdir}/usr/lib/mozilla/plugins/