updated on Mon Jan 23 16:10:15 UTC 2012
[aur-mirror.git] / swami / PKGBUILD
blobe096675e73ef3360fcf45d0ac9b59b3621247f36
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>
6 pkgname=swami
7 pkgver=2.0.0
8 pkgrel=2
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"
12 license=('GPL')
13 depends=('audiofile' 'libgnomecanvas' 'libinstpatch' 'librsvg' 'fluidsynth'
14          'fftw' 'gtksourceview2' 'hicolor-icon-theme' 'desktop-file-utils')
15 options=('!libtool')
16 install="$pkgname.install"
17 source=("http://downloads.sourceforge.net/project/$pkgname/$pkgname/$pkgver/$pkgname-$pkgver.tar.gz")
18 md5sums=('849b40e4a97c4f52faf069006358dd4f')
20 build() {
21   cd "$srcdir/$pkgname-$pkgver"
23   # fPIC fix for x86_64
24   [ "$CARCH" = 'x86_64' ] && \
25     export CFLAGS="$CFLAGS -fPIC"
27   # set python2
28   export PYTHON=python2
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 \
42               --enable-static=no
43   make
46 package() {
47   cd "$srcdir/$pkgname-$pkgver"
49   make DESTDIR="$pkgdir/" install