blob: bf73c86a0169d89136cd61b9dc01462878398478 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
|
# Maintainer: Fabrizio del Tin <fdt@euniversity.pub>
pkgname=muse-git
pkgver=4.0.0
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' 'lib32-gtk2' 'gcc-libs-multilib' 'jack' 'rtaudio')
makedepends=('cmake' 'gcc' 'ladspa' 'lv2' 'dssi' 'dssi-vst' 'ladish' 'liblo' 'qt5-tools')
optdepends=(
'python2: Python scripting'
'python2-pyqt5: Python scripting'
'ladspa: ladspa plugin support'
'lv2: lv2 plugin support'
'dssi: dssi plugin support'
'dssi-vst: dssi-vst plugins support'
'ladish: LASH session support'
)
provides=('muse-git')
conflicts=('muse')
source=('git+https://github.com/muse-sequencer/muse.git')
# Because the sources are not static, skip Git checksum:
md5sums=('SKIP')
pkgver() {
cd "$srcdir/muse"
printf "%s" "$(git describe --long --tags | sed 's/\([^-]*-\)g/r\1/;s/-/./g;s/_/./g;s/muse.//g')"
}
build() {
cd "${srcdir}/muse/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=1 \
-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 -j$(nproc)
}
package() {
cd "$srcdir/muse/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"
}
|