Want more features on Pastebin? Sign Up, it's FREE!
Guest

[MUSE2] By SpepS

By: a guest on Dec 27th, 2010  |  syntax: None  |  size: 1.41 KB  |  views: 50  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print  |  QR code  |  clone
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. # Maintainer : Bernardo Barros <bernardobarros@gmail.com>
  2. # Contributor: SpepS <dreamspepser at yahoo dot it>
  3.  
  4. pkgname=muse2
  5. _realname=muse
  6. pkgver=2.0alpha
  7. pkgrel=2
  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' 'lash' 'hicolor-icon-theme')
  13. makedepends=('cmake' 'doxygen' 'graphviz')
  14. install="$pkgname.install"
  15. source=("http://downloads.sourceforge.net/lmuse/$_realname-$pkgver.tar.gz")
  16. md5sums=('9622b5bbba33add3f0e49a719e924879 ')
  17.  
  18. build() {
  19.   # Does not link with as-needed
  20.   export LDFLAGS="${LDFLAGS//-Wl,--as-needed}"
  21.  
  22.   cd "$srcdir/$_realname-$pkgver"
  23.  
  24.   # Python2 Fixes
  25.   sed -i "s_env python_&2_;s_bin/python_&2_" \
  26.     `grep -rlE "(env python|bin/python)" .`
  27.  
  28.   # Fix desktop category and app name
  29.   sed -i "s_Audio;_&AudioVideo;_;s_use\$_&2_g" \
  30.     packaging/muse.desktop
  31.  
  32.   # Create build dir
  33.   [[ -d build ]] || mkdir build && cd build
  34.  
  35.   cmake -DCMAKE_BUILD_TYPE=release \
  36.         -DCMAKE_INSTALL_PREFIX=/usr \
  37.         -DENABLE_FLUID=1 \
  38.         -DENABLE_DSSI=1 \
  39.         -DENABLE_LASH=1 \
  40.         -DENABLE_OSC=1 ..
  41. #       -DENABLE-VST=1
  42.  
  43.   make
  44. }
  45.  
  46. package() {
  47.   cd "$srcdir/$_realname-$pkgver/build"
  48.  
  49.   make DESTDIR="$pkgdir" install
  50.  
  51.   # Prevent conflicts with Muse qt3
  52.   cd "$pkgdir/usr/share/applications"
  53.   mv muse.desktop $pkgname.desktop
  54. }
clone this paste RAW Paste Data