1 # Maintainer: SpepS <dreamspepser at yahoo dot it>
2 # Contributor: Philipp Überbacher <hollunder at gmx dot at>
3 # Contributor: Shinlun Hsieh <yngwiexx@yahoo.com.tw>
4 # Contributor: Christoph Zeiler <rabyte*gmail>
9 pkgdesc="A collection of free software for editing and sharing MIDI instruments and sounds"
10 arch=('i686' 'x86_64')
11 url="http://swami.resonance.org/trac"
13 depends=('audiofile' 'libgnomecanvas' 'libinstpatch' 'librsvg' 'fluidsynth'
14 'fftw' 'gtksourceview2' 'hicolor-icon-theme' 'desktop-file-utils')
16 install="$pkgname.install"
17 source=("http://downloads.sourceforge.net/project/$pkgname/$pkgname/$pkgver/$pkgname-$pkgver.tar.gz")
18 md5sums=('849b40e4a97c4f52faf069006358dd4f')
21 cd "$srcdir/$pkgname-$pkgver"
24 [ "$CARCH" = 'x86_64' ] && \
25 export CFLAGS="$CFLAGS -fPIC"
30 # python2 locate path fix
31 sed -i "s/echo\( \$PYTHON\)/which\1/g" configure
33 # build against gtksourceview-2.0
34 sed -i "s/\(gtksourceview-\)1.0/\12.0/g" configure
36 sed -e "s/\(anguage\)s/\1/" \
37 -e "s/_from_mime_type//" \
38 -e "s/light/&_syntax/" \
39 -i src/swamigui/SwamiguiPythonView.c
41 ./configure --prefix=/usr \
47 cd "$srcdir/$pkgname-$pkgver"
49 make DESTDIR="$pkgdir/" install