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-with-extras-git
9 pkgdesc="An environment and programming language for real time audio synthesis and algorithmic composition. Extended package with SC3-Plugins."
10 url="http://supercollider.sourceforge.net/"
11 arch=('i686' 'x86_64')
13 depends=('jack' 'fftw' 'avahi' 'ruby' 'icu' 'cwiid' 'rsync')
14 makedepends=('git' 'libsndfile>=1.0' 'emacs' 'vim' 'gedit' 'pkgconfig>=0.14.0' 'cmake' 'alsa-lib')
15 optdepends=('emacs' 'vim' 'ruby' 'gedit')
16 conflicts=('supercollider' 'supercute')
17 provides=('supercollider')
22 _gitroot="git://supercollider.git.sourceforge.net/gitroot/supercollider/supercollider"
23 _gitname="supercollider"
26 _gitroot2="git://sc3-plugins.git.sourceforge.net/gitroot/sc3-plugins/sc3-plugins"
27 _gitname2="sc3-plugins"
32 export LDFLAGS="${LDFLAGS//-Wl,--as-needed}"
35 msg "Connecting to GIT server...."
37 if [ -d $_gitname ] ; then
38 (cd $_gitname && git pull origin && git submodule update)
39 msg "The local files are updated."
41 git clone --recursive $_gitroot
44 msg "GIT checkout done or server timeout"
45 msg "Starting make..."
48 git submodule init && git submodule update
51 rm -rf $_gitname-build
52 cp -r $_gitname $_gitname-build
55 # if have a processor which supports it you can also enable SSE42 with -DSSE42=1
56 cmake . -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=Release -DNOVA_SIMD=1 -DNATIVE=1 -DSC_WII=1 -DSUPERNOVA=1 -DSC_QT=1
59 make DESTDIR=$pkgdir/ install
61 rm -rf $srcdir/$_gitname2-build
63 msg "Done building SuperCollider"
64 msg "Starting built of SC3-Plugins"
67 msg "Connecting to GIT server...."
69 if [ -d $_gitname2 ] ; then
70 (cd $_gitname2 && git pull origin)
71 msg "The local files are updated."
76 msg "GIT checkout done or server timeout"
77 msg "Starting make..."
79 cp -r $_gitname2 $_gitname2-build
82 cmake . -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=Release -DSC_PATH=$srcdir/supercollider-build -DSUPERNOVA=1 #-DAY=1
84 make DESTDIR=$pkgdir/ install
86 rm -rf $srcdir/$_gitname2-build