40 lines
1.6 KiB
Bash
40 lines
1.6 KiB
Bash
# Template file for 'OpenLP'
|
|
pkgname=OpenLP
|
|
version=2.9.4
|
|
revision=1
|
|
wrksrc="OpenLP-${version}"
|
|
create_wrksrc=yes
|
|
build_style=python3-module
|
|
# test always fails with AssertionError
|
|
# see https://gitlab.com/openlp/openlp/-/issues/1024
|
|
make_check_args="--deselect tests/openlp_core/ui/test_mainwindow.py::test_load_settings_position_invalid"
|
|
hostmakedepends="python3-setuptools qt5-host-tools"
|
|
depends="python3-alembic python3-appdirs python3-BeautifulSoup4 python3-chardet
|
|
python3-dbus python3-distro python3-Flask python3-Flask-Cors python3-lxml
|
|
python3-Mako python3-Pillow python3-pymediainfo python3-PyQt5
|
|
python3-PyQt5-multimedia python3-PyQt5-webengine python3-vlc python3-qrcode
|
|
python3-QtAwesome python3-requests python3-SQLAlchemy python3-waitress
|
|
python3-WebOb python3-websockets python3-zeroconf"
|
|
checkdepends="python3-pytest-qt ${depends}"
|
|
short_desc="Free Worship Presentation Software for your Church"
|
|
maintainer="Piotr Wójcik <chocimier@tlen.pl>"
|
|
license="GPL-3.0-or-later"
|
|
homepage="https://openlp.org/"
|
|
distfiles="https://get.openlp.org/${version}/OpenLP-${version}.tar.gz"
|
|
checksum=24dcd14841b5a6a03e0ac12202628429f467264ac8605268c63b6634121dd73a
|
|
|
|
if [ "$XBPS_TARGET_LIBC" = "musl" ]; then
|
|
# test fails with XMLSyntaxError
|
|
# see https://gitlab.com/openlp/openlp/-/issues/1023
|
|
make_check_args+=" --deselect tests/openlp_plugins/songs/test_presentationmanagerimport.py::test_presenter_manager"
|
|
fi
|
|
|
|
post_install() {
|
|
vinstall resources/openlp.desktop 644 usr/share/applications
|
|
vmkdir usr/share/openlp/i18n
|
|
cd resources/i18n
|
|
for i in *.ts; do
|
|
lconvert -i "${i}" -o "${DESTDIR}/usr/share/openlp/i18n/${i%ts}qm"
|
|
done
|
|
}
|