1 # Maintainer: Arch Linux Pro Audio <archaudio-devel@archaudio.org>
2 # Contributor: Björn Lindig <bjoern.lindig@googlemail.com>
3 # Contributor: Bernardo Barros <bernardobarros@gmail.com>
5 pkgname=supercollider-git
8 pkgdesc="An environment and programming language for real time audio synthesis and algorithmic composition."
9 url="http://supercollider.sourceforge.net/"
10 arch=('i686' 'x86_64')
12 depends=('jack' 'fftw' 'avahi' 'ruby' 'icu' 'cwiid' 'rsync')
13 makedepends=('git' 'libsndfile>=1.0' 'emacs' 'vim' 'gedit' 'pkgconfig>=0.14.0' 'cmake' 'alsa-lib' 'boost')
14 optdepends=('sc3-plugins-git: extra audio UGens'
15 'swingosc: java based GUI system')
16 conflicts=('supercollider')
17 provides=('supercollider=3.6')
22 _gitroot="git://supercollider.git.sourceforge.net/gitroot/supercollider/supercollider"
23 _gitname="supercollider"
27 export LDFLAGS="${LDFLAGS//-Wl,--as-needed}"
30 msg "Connecting to GIT server...."
32 if [ -d $_gitname ] ; then
33 (cd $_gitname && git pull origin && git submodule update)
34 msg "The local files are updated."
36 git clone --recursive $_gitroot
39 msg "GIT checkout done or server timeout"
40 msg "Starting make..."
43 git submodule init && git submodule update
46 rm -rf $_gitname-build
47 cp -r $_gitname $_gitname-build
53 cmake .. -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=Release \
54 -DSC_WII=1 -DSUPERNOVA=1 -DSC_QT=1 -DNATIVE=1
65 cd $srcdir/$_gitname-build/build
67 make DESTDIR=$pkgdir/ install