# Template file for 'OpenLP' pkgname=OpenLP version=2.9.5 revision=2 create_wrksrc=yes build_style=python3-module 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 xvfb-run ${depends}" short_desc="Free Worship Presentation Software for your Church" maintainer="Piotr Wójcik " license="GPL-3.0-or-later" homepage="https://openlp.org/" distfiles="https://get.openlp.org/${version}/OpenLP-${version}.tar.gz" checksum=4648e6869ffe2fb88a1e2b90705e1cf709dd6dd24abbfe2e17df13742e701c09 make_check_pre="env -u QT_QPA_PLATFORM xvfb-run" 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 }