From b73ebea394d8afa289598b1b56307851c1a680a8 Mon Sep 17 00:00:00 2001 From: fosslinux Date: Sun, 29 Nov 2020 11:55:15 +1100 Subject: [PATCH] bibletime: update to 3.0. With this release, upstream has stopped distributing documentation in release tarballs, instead we have to generate it. Hence, most of the new dependencies are for this purpose. The configure_args part is for detecting this in cross. The hack for cross has been removed as this is actually a reccuring issue with ppc cross that will be seperatly addressed, generally, for all packages. --- srcpkgs/bibletime/template | 25 ++++++++++++------------- 1 file changed, 12 insertions(+), 13 deletions(-) diff --git a/srcpkgs/bibletime/template b/srcpkgs/bibletime/template index 43ec68d576..0b197d39a8 100644 --- a/srcpkgs/bibletime/template +++ b/srcpkgs/bibletime/template @@ -3,30 +3,29 @@ # NOTE: Docs have not been split out because otherwise the application fails # to start. pkgname=bibletime -version=2.11.2 +version=3.0 revision=1 build_style=cmake -hostmakedepends="pkg-config qt5-host-tools qt5-qmake" +configure_args="-DBT_DOCBOOK_XSL_HTML_CHUNK_XSL=/usr/share/xsl/docbook/html/chunk.xsl + -DBT_DOCBOOK_XSL_PDF_DOCBOOK_XSL=/usr/share/xsl/docbook/fo/docbook.xsl" +hostmakedepends="pkg-config qt5-host-tools qt5-qmake apache-fop po4a + docbook-xsl docbook-xml libxslt" makedepends="clucene-devel libcurl-devel qt5-devel qt5-tools-devel - qt5-svg-devel qt5-webkit-devel sword-devel zlib-devel" + qt5-svg-devel qt5-webkit-devel sword-devel zlib-devel qt5-declarative-devel" short_desc="Powerful cross platform Bible study tool" maintainer="fosslinux " license="GPL-2.0-or-later" -homepage="http://bibletime.io" +homepage="http://bibletime.info" distfiles="https://github.com/bibletime/bibletime/releases/download/v${version}/bibletime-${version}.tar.xz" -checksum=d178197ce87c8211733409fb28fa6ed0220800bbf06944ebb8fe85bf78ddabe8 +checksum=d6beef62ad44b255e3dc4c5e89214bf01a0e85c9136073b0be12fca3d2b22622 -post_configure() { - # Workaround problem with qt5-host-tools path on some cross archs - if [ "$CROSS_BUILD" ]; then - find . -name build.make -exec \ - sed -i "s:${XBPS_CROSS_BASE}/usr/lib/qt5/bin:/usr/lib/qt5/bin:" {} \; - fi +pre_build() { + . /etc/profile.d/10_openjdk11.sh } pre_check() { export QT_QPA_PLATFORM=offscreen - mkdir -p share/bibletime - cd share/bibletime + mkdir -p "share/bibletime" + cd "share/bibletime" mkdir -p icons javascript license pics locale docs/handbook/en docs/howto/en display-templates }