Paste: PKGBUILD

Author: memeplex
Mode: shellscript
Date: Tue, 18 May 2010 13:45:51
Plain Text |
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
}

Annotation: csound.sh

Author: memeplex
Mode: shellscript
Date: Tue, 18 May 2010 13:47:08
Plain Text |
export OPCODEDIR=/usr/lib/csound/plugins
export OPCODEDIR64=/usr/lib/csound/plugins64
export CSSTRNGS=/usr/share/locale

Annotation: install.py.diff

Author: memeplex
Mode: patch
Date: Tue, 18 May 2010 13:47:56
Plain Text |
274,275c274,275
<         elif i[:11] == 'libcsnd.so':
<             err = installLink(i, concatPath([libDir, 'libcsnd.so']))
---
>         elif i[:11] == 'libcsnd.so.':
>             err = installLink(i, concatPath([libDir, 'libcsnd.so']))
338c338
<     fileName = concatPath([xmgDir, i, 'LC_MESSAGES/csound5.mo'])
---
>     fileName = concatPath([instDir, xmgDir, i, 'LC_MESSAGES/csound5.mo'])

New Annotation

Summary:
Author:
Mode:
Body: