updated on Mon Jan 16 00:01:41 UTC 2012
[aur-mirror.git] / muse2-vst / PKGBUILD
blob40171f10077740e80ad155881dfc099bdb6a3df7
1 # Contributor: Bernardo Barros <bernardobarros@gmail.com>
2 # Contributor: SpepS <dreamspepser at yahoo dot it>
4 pkgname=muse2-vst
5 _realname=muse
6 pkgver=2.0alpha
7 pkgrel=1
8 pkgdesc="A MIDI/Audio sequencer with recording and editing capabilities"
9 arch=('i686' 'x86_64')
10 url="http://muse-sequencer.org/"
11 license=('GPL')
12 depends=('qt' 'fluidsynth' 'dssi' 'steinberg-vst' 'lash' 'hicolor-icon-theme')
13 makedepends=('cmake' 'doxygen' 'graphviz')
14 provides=('muse' 'muse2')
15 install="$pkgname.install"
16 source=("http://downloads.sourceforge.net/lmuse/$_realname-$pkgver.tar.gz")
17 md5sums=('9622b5bbba33add3f0e49a719e924879')
19 build() {
20   # Does not link with as-needed
21   export LDFLAGS="${LDFLAGS//-Wl,--as-needed}"
23   cd "$srcdir/$_realname-$pkgver"
25   # Python2 Fixes
26   sed -i "s_env python_&2_;s_bin/python_&2_" \
27     `grep -rlE "(env python|bin/python)" .`
29   # Fix desktop category and app name
30   sed -i "s_Audio;_&AudioVideo;_;s_use\$_&2_g" \
31     packaging/muse.desktop
33   # Create build dir
34   [[ -d build ]] || mkdir build && cd build
36   cmake -DCMAKE_BUILD_TYPE=release \
37     -DCMAKE_INSTALL_PREFIX=/usr \
38     -DENABLE_FLUID=1 \
39     -DENABLE_DSSI=1 \
40     -DENABLE_LASH=1 \
41     -DENABLE_OSC=1 \
42     -DENABLE-VST=1 ..
43   make
46 package() {
47   cd "$srcdir/$_realname-$pkgver/build"
48   make DESTDIR="$pkgdir" install
49   # Prevent conflicts with Muse qt3
50   cd "$pkgdir/usr/share/applications"
51   mv muse.desktop $pkgname.desktop