From b690e102794d1c80333d2ff650acde77a31ec6c1 Mon Sep 17 00:00:00 2001 From: Roger Freitas Pereira Date: Mon, 26 Aug 2024 04:49:03 -0300 Subject: [PATCH] biblioteq: update to 2025.05.17, adopt. --- srcpkgs/biblioteq/template | 47 ++++++++++++++++++++++++-------------- 1 file changed, 30 insertions(+), 17 deletions(-) diff --git a/srcpkgs/biblioteq/template b/srcpkgs/biblioteq/template index 23f62e225ce..0cd3e8dfd05 100644 --- a/srcpkgs/biblioteq/template +++ b/srcpkgs/biblioteq/template @@ -1,43 +1,56 @@ # Template file for 'biblioteq' pkgname=biblioteq -version=2020.01.01 +version=2025.05.17 revision=1 build_style=qmake -configure_args="-o Makefile" -hostmakedepends="qt5-qmake qt5-host-tools" -makedepends="libpqxx-devel qt5-devel poppler-cpp-devel poppler-qt5-devel +build_helper=qmake6 +hostmakedepends="qt6-tools qt6-base" +makedepends="libpqxx-devel qt6-base-devel poppler-cpp-devel poppler-qt6-devel sqlite-devel yaz-devel" -depends="qt5-plugin-sqlite" +depends="qt6-plugin-sqlite" short_desc="Professional cataloging and library management suite" -maintainer="Orphaned " +maintainer="Rutpiv " license="BSD-3-Clause" homepage="https://textbrowser.github.io/biblioteq/" distfiles="https://github.com/textbrowser/biblioteq/archive/${version}.tar.gz" -checksum=e07ffccbee4e1f34a93ab3d9277c393669091b8a957c648bbcce65159f9e0d86 - +checksum=9b6a72c3e502f5e2e765d09793beb0797271569d085340e1385b81f4f4c8b8cb conf_files="/etc/biblioteq.conf" +# Set the appropriate build helper and dependencies based on architecture case "$XBPS_TARGET_MACHINE" in - arm*) configure_args+=" biblioteq.arm.pro" ;; - *) configure_args+=" biblioteq.pro" ;; + ppc*) + configure_file="biblioteq.powerpc.pro" + ;; + *) configure_file="biblioteq.pro" ;; esac - pre_configure() { - sed -i -e 's|biblioteq.conf|/etc/biblioteq.conf|' \ - -e 's/-mtune=native//' -e 's/-Werror//' biblioteq.arm.pro + configure_args="-o Makefile ${configure_file}" + vsed -i "${configure_file}" -e "s|biblioteq.conf|/etc/biblioteq.conf|" - sed -i -e 's|biblioteq.conf|/etc/biblioteq.conf|' \ - -e 's/-mtune=generic//' -e 's/-Werror//' biblioteq.pro + # Set paths for cross-compiling without export + if [ "$CROSS_BUILD" ]; then + vsed -i biblioteq-source.pro -e "s|/usr/include|${XBPS_CROSS_BASE}/usr/include|g" + fi +} + +post_build() { + # Fix the program .desktop file. + vsed -i Distributions/biblioteq.desktop \ + -e "s|Exec=/opt/biblioteq/biblioteq.sh|Exec=biblioteq|" \ + -e "s|Icon=/opt/biblioteq/book.png|Icon=biblioteq.png|" } do_install() { - ## Translations must be in the same directory as BiblioteQ (executable) + # Translations must be in the same directory as BiblioteQ (executable) vinstall BiblioteQ 755 usr/lib/BiblioteQ vcopy Translations usr/lib/BiblioteQ - vinstall Icons/book.png 644 usr/share/icons + + vinstall Icons/book.png 644 /usr/share/pixmaps/ biblioteq.png + vinstall Distributions/biblioteq.desktop 644 /usr/share/applications/ vconf biblioteq.conf vlicense LICENSE + vmkdir usr/bin ln -s /usr/lib/BiblioteQ/BiblioteQ ${DESTDIR}/usr/bin/biblioteq }