updated on Thu Jan 19 00:16:31 UTC 2012
[aur-mirror.git] / fluxus-git / PKGBUILD
blob56facf7e17c2a178b26e7b58fbc89b83dac48782
1 # Maintainer: SpepS <dreamspepser at yahoo dot it>
2 # Contributor: hm_b <holger@music-nerds.net>
4 pkgname=fluxus-git
5 pkgver=20110610
6 pkgrel=1
7 pkgdesc="A rapid prototyping, livecoding and playing/learning environment for 3D graphics and games."
8 arch=('i686' 'x86_64')
9 url="http://www.pawfal.org/fluxus/"
10 license=('GPL')
11 depends=('fftw' 'freeglut' 'glew' 'gstreamer0.10-base'
12          'liblo' 'ode' 'openal' 'racket' 'jack' 'ffmpeg')
13 makedepends=('git' 'scons' 'libunicap' 'pth')
14 provides=('fluxus')
15 conflicts=('fluxus')
16 source=('libffi.patch')
17 md5sums=('aa259ef4114c965c00ee2b5c964df3a0')
19 _gitroot="http://git.savannah.gnu.org/cgit/fluxus.git"
20 _gitname="fluxus"
22 build() {
24   cd "$srcdir"
25   msg "Connecting to GIT server...."
27   if [ -d $_gitname ] ; then
28     cd $_gitname && git pull origin
29     msg "The local files are updated."
30   else
31     git clone $_gitroot $_gitname
32   fi
34   msg "GIT checkout done or server timeout"
35   msg "Starting make..."
37   rm -rf "$srcdir/$_gitname-build"
38   git clone "$srcdir/$_gitname" "$srcdir/$_gitname-build"
39   cd "$srcdir/$_gitname-build"
41   #
42   # BUILD HERE
43   #
45   # add libffi to SConstruct
46   patch -p1 -i "$srcdir/libffi.patch"
48   # PNGLoader fix
49   sed -i "176,179d" libfluxus/src/PNGLoader.cpp
51   scons install Prefix=/usr \
52                 RacketPrefix=/usr \
53                 CCFLAGS="-D__STDC_CONSTANT_MACROS" \
54                 DESTDIR="$pkgdir/"
55