summaryrefslogtreecommitdiff
path: root/pcr/swami/PKGBUILD
blob: 74f69e50f50dc9fb758ecc99b100d738ebdbd835 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
# Maintainer (Arch): SpepS <dreamspepser at yahoo dot it>
# Contributor (Arch): Philipp Überbacher <hollunder at gmx dot at>
# Contributor (Arch): Shinlun Hsieh <yngwiexx@yahoo.com.tw>
# Contributor (Arch): Christoph Zeiler <rabyte*gmail>

pkgname=swami
pkgver=2.0.0
pkgrel=2
pkgdesc="A collection of free software for editing, managing and playing musical instruments for MIDI music composition"
arch=('i686' 'x86_64')
url="http://www.swamiproject.org/"
license=('GPL')
depends=('audiofile' 'libgnomecanvas' 'libinstpatch' 'librsvg' 'fluidsynth'
         'fftw' 'gtksourceview2' 'hicolor-icon-theme' 'desktop-file-utils')
makedepends=('intltool')
options=('!libtool')
install="$pkgname.install"
source=("http://downloads.sourceforge.net/project/$pkgname/$pkgname/$pkgver/$pkgname-$pkgver.tar.gz")
md5sums=('849b40e4a97c4f52faf069006358dd4f')

build() {
  cd "$srcdir/$pkgname-$pkgver"

  # fPIC fix for x86_64
  [ "$CARCH" = 'x86_64' ] && \
    export CFLAGS="$CFLAGS -fPIC"

  # set python2
  export PYTHON=python2

  # python2 locate path fix
  sed -i "s/echo\( \$PYTHON\)/which\1/g" configure

  # build against gtksourceview-2.0
  sed -i "s/\(gtksourceview-\)1.0/\12.0/g" configure

  sed -e "s/\(anguage\)s/\1/" \
      -e "s/_from_mime_type//" \
      -e "s/light/&_syntax/" \
      -i src/swamigui/SwamiguiPythonView.c

  ./configure --prefix=/usr \
              --enable-static=no
  make
}

package() {
  cd "$srcdir/$pkgname-$pkgver"

  make DESTDIR="$pkgdir/" install
}