1 # Maintainer: SpepS <dreamspepser at yahoo dot it>
7 pkgdesc="Open Octave Midi, the open source MIDI/Audio sequencer."
9 url="http://www.openoctave.org/"
11 depends=('qt' 'liblo' 'lash' 'fluidsynth' 'liblscp')
12 makedepends=('git' 'cmake' 'dssi')
14 conflicts=("$_pkg" "oom")
15 install="$pkgname.install"
17 _gitroot="git://github.com/ccherrett/oom.git"
22 msg "Connecting to GIT server...."
24 if [ -d $_gitname ] ; then
25 cd $_gitname && git pull origin
26 msg "The local files are updated."
28 git clone $_gitroot $_gitname
31 msg "GIT checkout done or server timeout"
32 msg "Starting make..."
34 rm -rf "$srcdir/$_gitname-build"
35 git clone "$srcdir/$_gitname" "$srcdir/$_gitname-build"
36 cd "$srcdir/$_gitname-build"
43 export PYTHON="python2"
44 sed -i "s|bin/python|&2|;s|env python|&2|" \
45 `grep -Erl "(bin/python|env python)" .`
47 # adding missing header
48 sed -i "14i#include <stddef.h>" oom/memory.h
50 # prepare build folder
51 mkdir build && cd build
53 cmake .. -DCMAKE_BUILD_TYPE=release \
54 -DCMAKE_INSTALL_PREFIX=/usr \
64 cd "$srcdir/$_gitname-build/build"
66 make DESTDIR="$pkgdir/" install
68 # prevent conflicts with muse 2
69 cd "$pkgdir/usr/bin" && mv grepmidi oom-grepmidi