# Template file for 'musescore'
pkgname=musescore
version=3.5.1
revision=1
wrksrc="MuseScore-${version}"
build_style=gnu-makefile
make_build_args="PREFIX=/usr USE_SYSTEM_FREETYPE=ON"
make_install_args="-C build.release"
hostmakedepends="cmake pkg-config"
makedepends="jack-devel lame-devel libsndfile-devel portaudio-devel
 portmidi-devel pulseaudio-devel qt5-declarative-devel qt5-script-devel
 qt5-svg-devel qt5-tools-devel qt5-webchannel-devel
 qt5-location-devel qt5-xmlpatterns-devel qt5-plugin-mysql qt5-plugin-odbc
 qt5-plugin-pgsql qt5-plugin-sqlite qt5-plugin-tds qt5-quickcontrols2-devel"
depends="qt5-plugin-sqlite qt5-graphicaleffects qt5-quickcontrols2"
short_desc="Create, play and print beautiful sheet music"
maintainer="Brian Olsen <bnolsen@comcast.net>"
license="GPL-2.0-or-later"
homepage="https://musescore.org/"
distfiles="https://github.com/musescore/MuseScore/archive/v${version}.tar.gz"
checksum=4fa9d3b3f90861447f78858786ed6e351ea691408551ee92e089d4bba1039e5a
nocross="genManual: cannot execute binary file: Exec format error"

# Liberation:
# Removed webengine related code.
# This is kept from the old if block so that nonfree webengine is not used:
make_build_args+=" BUILD_WEBENGINE=OFF"
