Advertisement
neuromancer85

fluxus-git PKGBUILD

Oct 16th, 2012
57
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 1.68 KB | None | 0 0
  1. # Maintainer: SpepS <dreamspepser at yahoo dot it>
  2. # Contributor: hm_b <holger@music-nerds.net>
  3.  
  4. _name=fluxus
  5. pkgname=$_name-git
  6. pkgver=20121016
  7. pkgrel=1
  8. pkgdesc="A rapid prototyping, livecoding and playing/learning environment for 3D graphics and games."
  9. arch=('i686' 'x86_64')
  10. url="http://www.pawfal.org/fluxus/"
  11. license=('GPL')
  12. depends=('fftw' 'freeglut' 'glew' 'gstreamer0.10-base' 'libunicap'
  13.          'liblo' 'ode' 'openal' 'racket' 'jack' 'ffmpeg')
  14. makedepends=('git' 'scons' 'pth')
  15. provides=("$_name")
  16. conflicts=("$_name")
  17. source=('libffi.patch'
  18.         'racket_5.1.2_segfault.patch::http://lists.pawfal.org/pipermail/fluxus-pawfal.org/attachments/20111006/97b8194a/attachment.txt')
  19. md5sums=('f118c864b0fdfc7d21433cc3998891eb'
  20.          'a8e92341f917747c1a69aa8cc41ba1b8')
  21.  
  22. _gitroot="http://git.savannah.gnu.org/r/$_name.git"
  23. _gitname="$_name"
  24.  
  25. build() {
  26.   cd "$srcdir"
  27.   msg "Connecting to GIT server...."
  28.  
  29.   if [ -d $_gitname ] ; then
  30.     cd $_gitname && git pull origin
  31.     msg "The local files are updated."
  32.   else
  33.     git clone $_gitroot $_gitname
  34.   fi
  35.  
  36.   msg "GIT checkout done or server timeout"
  37.   msg "Starting make..."
  38.  
  39.   rm -rf "$srcdir/$_gitname-build"
  40.   git clone "$srcdir/$_gitname" "$srcdir/$_gitname-build"
  41.   cd "$srcdir/$_gitname-build"
  42.  
  43.   #
  44.   # BUILD HERE
  45.   #
  46.  
  47.   # racket 5.1.2+ patch
  48.   patch -p1 -i "$srcdir/racket_5.1.2_segfault.patch"  
  49.  
  50.   # add libffi to SConstruct
  51.   patch -p1 -i "$srcdir/libffi.patch"
  52.  
  53.   # PNGLoader fix
  54.   sed -i "176,179d" libfluxus/src/PNGLoader.cpp
  55.  
  56.   scons install Prefix=/usr \
  57.                 RacketPrefix=/usr \
  58.                 CCFLAGS="-D__STDC_CONSTANT_MACROS" \
  59.                 DESTDIR="$pkgdir/"
  60. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement