# Maintainer: Knut # Contributor: Simon # Contributor: Garrett pkgname=openlp-git _pkgbase=openlp pkgver=r17869.ed7561bde pkgrel=3 pkgdesc="Church presentation software." arch=('any') url='http://openlp.org/' license=('GPL3') provides=('openlp') conflicts=('openlp') makedepends=('qt5-tools' 'git' 'python-pip') depends=('python>=3.10' 'python<3.13' 'python-pyqt5' 'phonon-qt5' 'python-pyqt5-webengine' 'python-flask' 'python-flask-cors' 'python-pymediainfo' 'python-qrcode' 'python-platformdirs' 'python-chardet' 'python-lxml' 'python-six' 'python-sqlalchemy' 'python-beautifulsoup4' 'python-pyenchant' 'python-dbus' 'python-alembic' 'mediainfo' 'qt5-multimedia' 'python-zeroconf' 'qt5-webkit' 'qt5-svg' 'python-webob' 'python-requests' 'vlc' 'python-waitress' 'python-websockets' 'python-qtawesome' 'python-vlc' 'python-pyicu' ) optdepends=('libreoffice-fresh: display impress presentations' 'python-pymupdf: display pdfs' 'python-mysql-connector: Use a mysql/mariadb database' 'python-psycopg2: Use a postgresql database' 'aspell: for aspell based spell checking support' 'hspell: for hspell based spell checking support (Hebrew spell-checker)' 'libvoikko: a spelling and grammar checker, hyphenator and collection of related linguistic data for Finnish language' 'nuspell: for nuspell based spell checking support (Using hunspell dictionaries' ) install=openlp.install source=('git+https://gitlab.com/openlp/openlp.git' 'openlp.sh') sha256sums=('SKIP' '19c2f3c622585bf308efc259013fb5518feaf8cf14b51613e1e71778fcc2e8cf') pkgver() { cd "$_pkgbase" printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" } package() { cd "${srcdir}/${_pkgbase}" python setup.py install --root="$pkgdir/" --optimize=1 PYTHON_VERSION=$(python -c 'import sys; print(".".join(map(str, sys.version_info[:2])))') TAG=$(git describe --tags --abbrev=0) VERSION="${TAG}+git.$(git rev-parse --short HEAD)" echo "$VERSION" > "$pkgdir/usr/lib/python${PYTHON_VERSION}/site-packages/openlp/.version" install -Dm0755 "$srcdir/openlp.sh" "$pkgdir/etc/profile.d/openlp.sh" install -Dm0644 "resources/openlp.desktop" "$pkgdir/usr/share/applications/openlp.desktop" install -Dm0644 "resources/images/openlp-logo.svg" "$pkgdir/usr/share/pixmaps/openlp.svg" install -Dm0644 "resources/images/openlp-logo-48x48.png" "$pkgdir/usr/share/pixmaps/openlp.png" #translations tsrcdir="$srcdir/openlp/resources/i18n" tdestdir="$pkgdir/usr/share/$_pkgbase/i18n" mkdir -p "$tdestdir" cd "$tsrcdir" for file in *.ts; do lconvert -i "$file" -o "$tdestdir/${file%%ts}qm" done } # vim:set ts=2 sw=2 et: