void-packages/srcpkgs/OpenLP/template

41 lines
1.5 KiB
Bash

# Template file for 'OpenLP'
pkgname=OpenLP
version=3.1.4
revision=1
build_style=python3-module
hostmakedepends="python3-setuptools qt5-host-tools"
depends="python3-alembic python3-platformdirs python3-BeautifulSoup4
python3-chardet python3-dbus python3-distro python3-Flask python3-Flask-Cors
python3-lxml python3-Mako python3-pymediainfo python3-PyQt5
python3-PyQt5-multimedia python3-PyQt5-webengine python3-vlc python3-qrcode
python3-QtAwesome python3-requests python3-SQLAlchemy python3-waitress
python3-websockets python3-zeroconf python3-PyICU"
checkdepends="python3-pytest-qt xvfb-run ${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://gitlab.com/openlp/openlp/-/archive/${version}/openlp-${version}.tar.gz"
checksum=4091b84307f4ea93d28215b5ef4d8442bf9346938c1e7ba6f377e47267a6094c
make_check_pre="env -u QT_QPA_PLATFORM xvfb-run"
post_install() {
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
cd ../images
for size in 16 32 48 64 128 256; do
vinstall openlp-logo-${size}x${size}.png 644 \
usr/share/icons/hicolor/${size}x${size}/apps openlp.png
done
vinstall openlp.svg 644 usr/share/icons/hicolor/scalable/apps
cd ..
vinstall openlp.desktop 644 usr/share/applications
vinstall openlp.xml 644 usr/share/mime/packages
}