updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / supercollider / PKGBUILD
blobc4c9fcbaebd78e6f2ea4cdaa38e1d2e07e95ec99
1 # Maintainer : SpepS <dreamspepser at yahoo dot it>
2 # Contributor:  <farid at archlinux-br.org>
4 _pkg=SuperCollider
5 pkgname=supercollider
6 pkgver=3.4.5
7 pkgrel=1
8 pkgdesc="An environment and programming language for real time audio synthesis and algorithmic composition"
9 arch=('i686' 'x86_64')
10 url="http://supercollider.sourceforge.net/"
11 license=('GPL')
12 depends=('jack' 'fftw' 'icu' 'cwiid' 'curl')
13 makedepends=('scons' 'ruby' 'vim' 'emacs')
14 optdepends=('emacs: emacs interface'
15             'gedit: gedit interface'
16             'vim: vim interface'
17             'ruby: vim support'
18             'unhtml: vim support')
19 backup=('etc/sclang.cfg')
20 install="$pkgname.install"
21 source=("http://switch.dl.sourceforge.net/project/$pkgname/Source/$pkgver/$_pkg-$pkgver-Source-linux.tar.gz")
22 md5sums=('1d49843b5f342fa216310883d7f8e33d')
23 _opts="PREFIX=/usr ALSA=yes AUDIOAPI=jack DEBUG=no DEVELOPMENT=yes FFTW=yes LANG=yes LID=yes NO_LIBSNDFILE=no \
24        WII=true RENDEZVOUS=yes SCEL=yes SCVIM=yes SCED=yes TERMINAL_CLIENT=yes CURL=yes READLINE=yes X11=yes"
26 build() {
27   cd "$srcdir/$_pkg-Source/common"
29   # Fix sclangpipe_app path in scvimrc
30   sed -i "s|local/||" ../editors/scvim/scvimrc
32   # Stripping Debian related code
33   sed -i "34,52d" ../editors/scvim/bin/scvim
35   # utf-8 encoding fix for ruby 1.9
36   sed -i "s|\(ruby\).*|\1 -Kn|" ../editors/scvim/bin/scvim_make_help
38   # fix readline header check in scons
39   sed -i "s|(\('readline/readline.h'\)|(['stdio.h', \1]|" SConstruct
41   # remove insecure rpath
42   sed -i "s|-rpath,|-rpath-link,|g" SConstruct
44   # build
45   scons $_opts
48 package() {
49   cd "$srcdir/$_pkg-Source/common"
51   scons DESTDIR="$pkgdir/" $_opts install
53   # installing vim files
54   scons -C ../editors/scvim PREFIX="$pkgdir/usr" \
55                             VIMFILE_DIR=/usr/share/vim/addons install-system
57   install -d "$pkgdir/usr/share/vim/vimfiles"
58   cp -a ../editors/scvim/{extra,ftplugin,indent,syntax} \
59     "$pkgdir/usr/share/vim/vimfiles"
61   # gedit extensions
62   scons -C ../editors/sced PREFIX="$pkgdir/usr" install
64   # default sclang.cfg
65   install -d "$pkgdir/etc"
66   sed "s|@PKG_DATA_DIR@|/usr/share/$_pkg|g" \
67     ../linux/examples/sclang.cfg.in > "$pkgdir/etc/sclang.cfg"
69   # sample sclang.sc
70   install -Dm644 ../linux/examples/sclang.sc \
71     "$pkgdir/usr/share/$_pkg/examples"