diff --git a/srcpkgs/biblioteq/patches/support-etc-configuration.patch.patch b/srcpkgs/biblioteq/patches/support-etc-configuration.patch.patch new file mode 100644 index 00000000000000..8351514c377d39 --- /dev/null +++ b/srcpkgs/biblioteq/patches/support-etc-configuration.patch.patch @@ -0,0 +1,21 @@ +Add /usr/lib/BiblioteQ search path to the launcher script. + +--- a/biblioteq.sh ++++ b/biblioteq.sh +@@ -48,6 +48,16 @@ then + exit $? + fi + ++if [ -r /usr/lib/BiblioteQ/BiblioteQ ] && ++ [ -x /usr/lib/BiblioteQ/BiblioteQ ] ++then ++ echo "Launching an official BiblioteQ." ++ set_qt_qpa_platformtheme "/usr/lib/BiblioteQ/BiblioteQ" ++ /usr/lib/BiblioteQ/BiblioteQ \ ++ --configuration-file /etc/biblioteq.conf "$@" ++ exit $? ++fi ++ + if [ -r /usr/local/biblioteq/BiblioteQ ] && + [ -x /usr/local/biblioteq/BiblioteQ ] + then diff --git a/srcpkgs/biblioteq/template b/srcpkgs/biblioteq/template index 020a1a2e55720f..2b386251946460 100644 --- a/srcpkgs/biblioteq/template +++ b/srcpkgs/biblioteq/template @@ -1,6 +1,6 @@ # Template file for 'biblioteq' pkgname=biblioteq -version=2026.01.07 +version=2026.03.15 revision=1 build_style=qmake build_helper=qmake6 @@ -13,20 +13,17 @@ maintainer="Rutpiv " license="BSD-3-Clause" homepage="https://textbrowser.github.io/biblioteq/" distfiles="https://github.com/textbrowser/biblioteq/archive/${version}.tar.gz" -checksum=535b6a468011554285f003f52e703901434e34a8c3c726bf856bcaa0394c3662 +checksum=91eed06cd2611aec5de2e8276814ff126d055980039fa0ba1929f68e50e34976 conf_files="/etc/biblioteq.conf" # Set the appropriate build helper and dependencies based on architecture case "$XBPS_TARGET_MACHINE" in - ppc*) - configure_file="biblioteq.powerpc.pro" - ;; - *) configure_file="biblioteq.pro" ;; + ppc*) configure_file="biblioteq.powerpc.pro" ;; + *) configure_file="biblioteq.pro" ;; esac pre_configure() { configure_args="-o Makefile ${configure_file}" - vsed -i "${configure_file}" -e "s|biblioteq.conf|/etc/biblioteq.conf|" # Set paths for cross-compiling without export if [ "$CROSS_BUILD" ]; then @@ -51,6 +48,6 @@ do_install() { vconf biblioteq.conf vlicense LICENSE - vmkdir usr/bin - ln -s /usr/lib/BiblioteQ/BiblioteQ ${DESTDIR}/usr/bin/biblioteq + # Use upstream launcher script to set --configuration-file + vbin biblioteq.sh biblioteq }