pkgname=csound5 pkgver=5.12.1 pkgrel=1 pkgdesc="A programming language designed and optimized for sound rendering and signal processing" url="http://sourceforge.net/project/showfiles.php?group_id=81968" arch=('i686' 'x86_64') license=('LGPL' 'GPL') depends=('python' 'fltk' 'portaudio' 'java-environment' 'liblo' 'fluidsynth') makedepends=('scons' 'swig') provides=('csound5') conflicts=('csound') source=("http://downloads.sourceforge.net/csound/Csound$pkgver.tar.gz") md5sums=('70b0c4a159c4960a09719674657949c9') _gccOptions="-I/opt/java/include -I/opt/java/include/linux -O3 -march=pentium4" # useDouble is a requirement for using with blue via csound api _csOptions="prefix=/usr useALSA=1 useJack=1 useFLTK=1 buildCsound5GUI=1 useOSC=1 buildPythonOpcodes=1 buildJavaWrapper=1 buildPythonWrapper=1 buildInterfaces=1 buildVirtual=1 buildUtilities=1 buildStkOpcodes=0 dynamicCsoundLibrary=1 useDouble=0" build() { cd $srcdir/Csound$pkgver scons customCCFLAGS="$_gccOptions" $_csOptions || return 1 patch -p1 install.py < ../../install.py.diff ./install.py --instdir=$startdir/pkg --prefix=/usr cd $startdir install -Dm 755 csound.sh pkg/etc/profile.d/csound.sh }