Advertisement
Guest User

PKGBUILD for muse-git

a guest
Nov 3rd, 2019
189
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 2.32 KB | None | 0 0
  1. # Maintainer: Fabrizio del Tin <fdt@euniversity.pub>
  2. pkgname=muse-git
  3. pkgver=$(date +%Y%m%d)
  4. pkgrel=1
  5. pkgdesc="A MIDI/Audio sequencer with recording and editing capabilities"
  6. arch=('i686' 'x86_64')
  7. url="http://muse-sequencer.org/"
  8. license=('GPL2')
  9. depends=('qt5-base' 'fluidsynth' 'liblo' 'gtkmm' 'gcc-libs' 'jack' 'rtaudio')
  10. makedepends=('cmake' 'gcc' 'ladspa' 'lv2' 'dssi' 'liblo' 'qt5-tools')
  11. optdepends=(
  12.     'python: Python scripting'
  13.     'python-pyqt5: Python scripting'
  14.     'ladspa: ladspa plugin support'
  15.     'lv2: lv2 plugin support'
  16.     'dssi: dssi plugin support'
  17. )
  18. provides=('muse')
  19. conflicts=('muse')
  20. source=("$pkgname"::'git+https://github.com/muse-sequencer/muse.git')
  21. # Because the sources are not static, skip Git checksum:
  22. md5sums=('SKIP')
  23.  
  24. build() {
  25.   cd "${srcdir}/$pkgname/muse3/"
  26.  
  27.   sed -i 's/PyInt_AsLong/PyLong_AsLong/g' muse/remote/pyapi.cpp
  28.   sed -i 's/PyString_AsString/PyBytes_AsString/g' muse/remote/pyapi.cpp
  29.   sed -i 's/static void\* pyapithreadfunc(void\*)/static struct PyModuleDef muse =\n{\n    PyModuleDef_HEAD_INIT,\n    "muse", \/\* name of module \*\/\n    "",          \/\* module documentation, may be NULL \*\/\n    -1,          \/\* size of per-interpreter state of the module, or -1 if the module keeps state in global variables. \*\/\n    g_methodDefinitions\n};\n\nstatic void\* pyapithreadfunc(void\*)/' muse/remote/pyapi.cpp
  30.   sed -i 's/Py_InitModule( "muse", g_methodDefinitions );/PyModule_Create( \&muse );/' muse/remote/pyapi.cpp
  31.  
  32.   # build dir
  33.   [ -d build ] || mkdir build && cd build
  34.  
  35.   cmake -DCMAKE_INSTALL_PREFIX=/usr \
  36.         -DCMAKE_BUILD_TYPE=release \
  37.         -DENABLE_VST_VESTIGE=1 \
  38.         -DENABLE_VST_NATIVE=1 \
  39.         -DENABLE_LV2=1 \
  40.         -DENABLE_LV2_MAKE_PATH=1 \
  41.         -DENABLE_PYTHON=1 \
  42.         -DENABLE_FLUID=1 \
  43.         -DENABLE_DSSI=1 \
  44.         -DENABLE_LASH=0 \
  45.         -DENABLE_OSC=1 \
  46.         -DENABLE_RTAUDIO=1 ..
  47.   sed -i -e 's/CXX_INCLUDES = /CXX_INCLUDES = -I\/usr\/include\/harfbuzz /' muse/lv2Gtk2Support/CMakeFiles/lv2_gtk2_support.dir/flags.make
  48.   make
  49. }
  50.  
  51. package() {
  52.   cd "$srcdir/$pkgname/muse3/build"
  53.   make DESTDIR="$pkgdir" install
  54.  
  55.   # .. and oomidi grepmidi bin
  56.   cd "$pkgdir/usr/bin"
  57.   mv grepmidi "$pkgname-grepmidi"
  58.  
  59.   # grepmidi man
  60.   cd "$pkgdir/usr/share/man/man1"
  61.   mv grepmidi.1 "$pkgname-grepmidi.1"
  62. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement