1 # Maintainer : SpepS <dreamspepser at yahoo dot it>
2 # Contributor: <farid at archlinux-br.org>
8 pkgdesc="An environment and programming language for real time audio synthesis and algorithmic composition"
10 url="http://supercollider.sourceforge.net/"
12 depends=('jack' 'fftw' 'icu' 'cwiid' 'curl')
13 makedepends=('scons' 'ruby' 'vim' 'emacs')
14 optdepends=('emacs: emacs interface'
15 'gedit: gedit interface'
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"
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
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"
62 scons -C ../editors/sced PREFIX="$pkgdir/usr" install
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"
70 install -Dm644 ../linux/examples/sclang.sc \
71 "$pkgdir/usr/share/$_pkg/examples"