updated on Wed Jan 18 20:10:41 UTC 2012
[aur-mirror.git] / oomidi / PKGBUILD
blob97e6a7280d2afb648e8cc70a776029166c475ca6
1 # Maintainer: SpepS <dreamspepser at yahoo dot it>
3 _pkg=oom
4 pkgname=oomidi
5 pkgver=2011.3.1
6 pkgrel=1
7 pkgdesc="Open Octave Midi, the open source MIDI/Audio sequencer."
8 arch=(i686 x86_64)
9 url="http://www.openoctave.org/"
10 license=('GPL')
11 depends=('qt' 'liblo' 'lash' 'fluidsynth' 'liblscp' "suil<1.0.0" "lilv<1.0.0")
12 makedepends=('cmake' 'dssi')
13 conflicts=("$pkgname-git" "oom")
14 replaces=("$_pkg")
15 install="$pkgname.install"
16 source=("https://github.com/ccherrett/oom/wiki/$_pkg-$pkgver.tar.gz")
17 md5sums=('fd39c3b7ce071cb98847ce35e470ed37')
19 build() {
20   cd "$srcdir/$_pkg-$pkgver"
22   # prepare build folder
23   [[ -d build ]] || mkdir build && cd build
25   cmake .. -DCMAKE_BUILD_TYPE=release \
26            -DCMAKE_INSTALL_PREFIX=/usr \
27            -DENABLE_LASH=ON \
28            -DENABLE_OSC=ON \
29            -DENABLE_DSSI=ON \
30            -DENABLE_FLUID=ON \
31            -DENABLE_LSCP=ON
32   make
35 package() {
36   cd "$srcdir/$_pkg-$pkgver/build"
38   make DESTDIR="$pkgdir/" install
40   # prevent conflicts with muse 2
41   cd "$pkgdir/usr/bin" && mv grepmidi oom-grepmidi
43   # python2 fixes
44   sed -i "s|bin/python|&2|;s|env python|&2|" \
45     `grep -Erl "(bin/python|env python)" "$pkgdir"`
46