updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / lightspark-git / PKGBUILD
blob510df35cd16fcc06fb28213017355042cab9195b
1 # Maintainer: Jan "heftig" Steffens <jan.steffens@gmail.com>
2 # Contributor: Thomas Dziedzic < gostrc at gmail >
4 pkgname=lightspark-git
5 pkgver=20110614
6 pkgrel=1
7 pkgdesc="An alternative Flash Player for Linux - Flash for real. Now."
8 arch=(i686 x86_64)
9 url="http://lightspark.sourceforge.net"
10 license=(LGPL3)
11 depends=(mesa ftgl gtk2 curl zlib ffmpeg glew pcre libffi boost-libs
12          hicolor-icon-theme desktop-file-utils libxml++ rtmpdump) 
13 makedepends=(git cmake nasm xulrunner llvm glproto boost fontconfig
14              sdl libpulse)
15 optdepends=('gnash-gtk: Gnash fallback support'
16             'libpulse: PulseAudio audio backend'
17             'sdl: SDL audio backend')
18 provides=(lightspark)
19 conflicts=(lightspark)
20 install=lightspark.install
21 _gitroot="git://github.com/lightspark/lightspark.git"
22 _gitname="lightspark"
24 build() {
25   cd "$srcdir"
27   if [ -d $_gitname ] ; then
28     ( cd $_gitname && git pull ) || warning "Git pull failed!"
29   else
30     git clone $_gitroot $_gitname
31   fi
33   rm -rf $_gitname-build
34   mkdir $_gitname-build
35   cd $_gitname-build
37   cmake \
38     -DCMAKE_INSTALL_PREFIX=/usr \
39     -DCOMPILE_PLUGIN=1 \
40     -DCMAKE_BUILD_TYPE=Release \
41     -DGNASH_EXE_PATH=/usr/bin/gtk-gnash \
42     -DAUDIO_BACKEND="pulseaudio sdl" \
43     ../$_gitname
45   make
48 package() {
49   cd "$srcdir/$_gitname-build"
51   make DESTDIR="$pkgdir" install