Skip to content

Instantly share code, notes, and snippets.

@duongdominhchau
Created November 11, 2023 11:53
Show Gist options
  • Save duongdominhchau/590484cf725a656093224e2474cd4e68 to your computer and use it in GitHub Desktop.
Save duongdominhchau/590484cf725a656093224e2474cd4e68 to your computer and use it in GitHub Desktop.
MuseScore PKGBUILD font fix
# Maintainer: Maxime Gauduin <[email protected]>
# Contributor: Stefan Husmann <[email protected]>
# Contributor: Cristian Maureira <[email protected]>
# Contributor: Dr.Egg <[email protected]>
pkgname=musescore
pkgver=4.1.1
pkgrel=2
pkgdesc='Create, play and print beautiful sheet music'
arch=(x86_64)
url=https://musescore.org/
license=(GPL)
groups=(pro-audio)
depends=(
gcc-libs
glibc
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
texlive-core
)
optdepends=('lame: MP3 export')
options=(!lto)
_tag=e4d1ddf2073c5ad4596ee27aa3019db4da2b76e8
source=(git+https://github.com/musescore/MuseScore.git#tag=${_tag})
sha256sums=(SKIP)
prepare() {
cd MuseScore
# 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_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}
}
# vim: ts=2 sw=2 et:
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment