blob: 838ef48733f0976d8bb2480f6db17f10751a9877 (
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
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
|
# Maintainer: Yoann Laissus <yoann.laissus@gmail.com>
# Contributor: Maxime Gauduin <alucryd@archlinux.org>
# Contributor: Stefan Husmann <stefan-husmann@t-online.de>
# Contributor: Cristian Maureira <saint@archlinux.cl>
# Contributor: Dr.Egg <rwhite@archlinux.us>
pkgname=musescore-midi
pkgver=4.3.2
pkgrel=1
pkgdesc='Create, play and print beautiful sheet music / With patch for midi playback support'
arch=(x86_64)
url=https://musescore.org/
license=(GPL)
groups=(pro-audio)
depends=(
gcc-libs
glibc
hicolor-icon-theme
libasound.so
libfreetype.so
libsndfile.so
qt5-base
qt5-declarative
qt5-graphicaleffects
qt5-networkauth
qt5-quickcontrols
qt5-quickcontrols2
qt5-svg
qt5-x11extras
qt5-xmlpatterns
zlib
)
makedepends=(
cmake
doxygen
git
lame
ninja
python
qt5-tools
)
optdepends=('lame: MP3 export')
provides=('musescore')
conflicts=('musescore')
options=(!lto)
_tag=v4.3.2
source=(
git+https://github.com/musescore/MuseScore.git#tag=${_tag}
midi.patch
)
sha256sums=(
SKIP
885eb1123a206209a3faaeb38b297676f7661b24d3db229bba66377b44b2502e
)
prepare() {
cd MuseScore
# Add support for MIDI output
patch -p1 < "${srcdir}/midi.patch"
# Fix display of scores with recent qt5-declarative
git cherry-pick -n c747bdbcba81109e2749015a575827b2494af971
}
pkgver() {
cd MuseScore
git describe --tags | sed 's/^v//'
}
build() {
cmake -S MuseScore -B build -G Ninja \
-DCMAKE_BUILD_TYPE=None \
-DCMAKE_C_FLAGS_RELEASE="$CFLAGS" \
-DCMAKE_CXX_FLAGS_RELEASE="$CXXFLAGS" \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_SKIP_RPATH=ON \
-DMUSESCORE_BUILD_CONFIGURATION=app \
-DMUSESCORE_BUILD_MODE=release \
-DMUSESCORE_REVISION=$(git rev-parse --short=7 HEAD) \
-DMUE_BUILD_CRASHPAD_CLIENT=OFF \
-DMUE_BUILD_UNIT_TESTS=OFF \
-DMUE_COMPILE_USE_SYSTEM_FREETYPE=ON \
-DMUE_ENABLE_FILE_ASSOCIATION=ON \
-DMUE_INSTALL_SOUNDFONT=ON \
-Wno-dev
cmake --build build
}
package() {
DESTDIR="${pkgdir}" cmake --install build
rm -rf "${pkgdir}"/usr/{bin/crashpad_handler,include,lib}
# Force X11 - menus are broken under Wayland
sed -i 's#Exec=\(.*\)#Exec=/usr/bin/env XDG_SESSION_TYPE=x11 \1#' "${pkgdir}/usr/share/applications/org.musescore.MuseScore.desktop"
}
# vim: ts=2 sw=2 et:
|