updated on Mon Jan 16 04:00:32 UTC 2012
[aur-mirror.git] / swami / PKGBUILD
blob770d0e9d4d31ac825fc56e5d87820d3ddb931911
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=1
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          'gtksourceview' 'hicolor-icon-theme' 'shared-mime-info')
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() {
22   cd "$srcdir/$pkgname-$pkgver"
24   # Python2 fix
25   export PYTHON="python2"
27   # Configure Fix
28   sed -i "s_echo\( \$PYTHON\)_which\1_g" -i configure
30   # X86_64 Fix
31   CFLAGS="${CFLAGS} -fPIC"
33   ./configure --prefix="/usr"
34   make
37 package() {
39   cd "$srcdir/$pkgname-$pkgver"
41   make DESTDIR="$pkgdir/" install