summaryrefslogtreecommitdiffstats
path: root/abs/extra/community/gnash/PKGBUILD
blob: daed440b7e56bb150bd4de2b772db62bb14a0b4b (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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
# $Id: PKGBUILD 82896 2010-06-18 18:30:20Z ibiru $
# Maintainer: Jan "heftig" Steffens <jan.steffens@gmail.com>

pkgbase=gnash
pkgname=(gnash-common gnash-gtk)
pkgver=0.8.8
pkgrel=1
arch=('i686' 'x86_64')
url="http://www.gnu.org/software/gnash/"
license=(GPL3)
makedepends=(curl giflib boost-libs libldap sdl agg libjpeg libpng libtool
             speex fontconfig libva ffmpeg libxinerama
             gstreamer0.10-base gstreamer0.10-ffmpeg
             gtk2 libldap
             pkgconfig boost)
options=(!libtool !emptydirs)
source=(http://ftp.gnu.org/gnu/gnash/${pkgver}/gnash-${pkgver}.tar.bz2)
md5sums=('ce57f66e222f7eb1adf7f7b4a1274612')

build() {
  cd "$srcdir/gnash-$pkgver"

  ./configure \
    --prefix=/usr \
    --sysconfdir=/etc \
    --with-plugins-install=system \
    --with-npapi-plugindir=/usr/lib/mozilla/plugins \
    --enable-gui=sdl,gtk \
    --enable-renderer=agg \
    --enable-media=gst,ffmpeg \
    --enable-hwaccel=vaapi

  make
}

package_gnash-common() {
  pkgdesc="A GNU Flash movie player"
  depends=(curl giflib boost-libs libldap ffmpeg sdl agg libjpeg libpng
           speex fontconfig libva libxinerama
           gstreamer0.10-base gstreamer0.10-ffmpeg)
  backup=(etc/gnashrc etc/gnashpluginrc)

  cd "$srcdir/gnash-$pkgver"

  make DESTDIR="$pkgdir" install

  mv "$pkgdir/usr/bin/gtk-gnash" "$srcdir"
}

package_gnash-gtk() {
  pkgdesc="A GNU Flash movie player"
  depends=("gnash-common=$pkgver" gtk2 libldap)

  cd "$srcdir/gnash-$pkgver"

  make DESTDIR="$pkgdir" install-plugin

  install -D "$srcdir/gtk-gnash" "$pkgdir/usr/bin/gtk-gnash"
}