Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Maintainer: Fabrizio del Tin <fdt@euniversity.pub>
- pkgname=muse-git
- pkgver=$(date +%Y%m%d)
- pkgrel=1
- pkgdesc="A MIDI/Audio sequencer with recording and editing capabilities"
- arch=('i686' 'x86_64')
- url="http://muse-sequencer.org/"
- license=('GPL2')
- depends=('qt5-base' 'fluidsynth' 'liblo' 'gtkmm' 'gcc-libs' 'jack' 'rtaudio')
- makedepends=('cmake' 'gcc' 'ladspa' 'lv2' 'dssi' 'liblo' 'qt5-tools')
- optdepends=(
- 'python: Python scripting'
- 'python-pyqt5: Python scripting'
- 'ladspa: ladspa plugin support'
- 'lv2: lv2 plugin support'
- 'dssi: dssi plugin support'
- )
- provides=('muse')
- conflicts=('muse')
- source=("$pkgname"::'git+https://github.com/muse-sequencer/muse.git')
- # Because the sources are not static, skip Git checksum:
- md5sums=('SKIP')
- build() {
- cd "${srcdir}/$pkgname/muse3/"
- sed -i 's/PyInt_AsLong/PyLong_AsLong/g' muse/remote/pyapi.cpp
- sed -i 's/PyString_AsString/PyBytes_AsString/g' muse/remote/pyapi.cpp
- 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
- sed -i 's/Py_InitModule( "muse", g_methodDefinitions );/PyModule_Create( \&muse );/' muse/remote/pyapi.cpp
- # build dir
- [ -d build ] || mkdir build && cd build
- cmake -DCMAKE_INSTALL_PREFIX=/usr \
- -DCMAKE_BUILD_TYPE=release \
- -DENABLE_VST_VESTIGE=1 \
- -DENABLE_VST_NATIVE=1 \
- -DENABLE_LV2=1 \
- -DENABLE_LV2_MAKE_PATH=1 \
- -DENABLE_PYTHON=1 \
- -DENABLE_FLUID=1 \
- -DENABLE_DSSI=1 \
- -DENABLE_LASH=0 \
- -DENABLE_OSC=1 \
- -DENABLE_RTAUDIO=1 ..
- sed -i -e 's/CXX_INCLUDES = /CXX_INCLUDES = -I\/usr\/include\/harfbuzz /' muse/lv2Gtk2Support/CMakeFiles/lv2_gtk2_support.dir/flags.make
- make
- }
- package() {
- cd "$srcdir/$pkgname/muse3/build"
- make DESTDIR="$pkgdir" install
- # .. and oomidi grepmidi bin
- cd "$pkgdir/usr/bin"
- mv grepmidi "$pkgname-grepmidi"
- # grepmidi man
- cd "$pkgdir/usr/share/man/man1"
- mv grepmidi.1 "$pkgname-grepmidi.1"
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement