Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 21 additions & 0 deletions srcpkgs/biblioteq/patches/support-etc-configuration.patch.patch
Original file line number Diff line number Diff line change
@@ -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
15 changes: 6 additions & 9 deletions srcpkgs/biblioteq/template
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -13,20 +13,17 @@ maintainer="Rutpiv <roger_freitas@live.com>"
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
Expand All @@ -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
}