updated on Wed Jan 25 08:34:36 UTC 2012
[aur-mirror.git] / gnash-bzr / PKGBUILD
blobebfed7843f54b0b993a5b087bb19d7151196603a
1 # Contributor: Matthew Bauer <mjbauer95@gmail.com>
2 # Contributor: flamelab
3 pkgname=gnash-bzr
4 pkgver=1
5 pkgrel=1
6 pkgdesc="Gnash is an open source flashplayer."
7 arch=('i686' 'x86_64')
8 url="http://www.gnu.org/software/gnash/"
9 license=('GPL')
10 depends=('agg' 'atk' 'libxml2' 'curl' 'libtool' 'ffmpeg' 'boost' 'pango' 'libxi' 'libva')
11 #ffmpeg-svn libdc1394
12 makedepends=('bzr')
13 provides=(gnash-common gnash-gtk)
14 conflicts=(gnash-common gnash-gtk)
16 _bzrbranch=http://bzr.savannah.gnu.org/r/gnash/trunk
17 _bzrmod=gnash
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   cp -r ./${_bzrmod} ./${_bzrmod}-build
35   cd ./${_bzrmod}-build
37   sh autogen.sh 
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 \
44                     --enable-gui=gtk \
45                     --enable-z \
46                     --enable-jpeg \
47                     --enable-renderer=agg \
48                     --enable-media=ffmpeg \
49                     --enable-write \
50                     --disable-cygnal \
51                     
52    make || return 1
55 package(){
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/