biblioteq: update to 2025.05.17, adopt.

This commit is contained in:
Roger Freitas Pereira 2024-08-26 04:49:03 -03:00 committed by classabbyamp
parent b52fe93e66
commit b690e10279

View file

@ -1,43 +1,56 @@
# Template file for 'biblioteq' # Template file for 'biblioteq'
pkgname=biblioteq pkgname=biblioteq
version=2020.01.01 version=2025.05.17
revision=1 revision=1
build_style=qmake build_style=qmake
configure_args="-o Makefile" build_helper=qmake6
hostmakedepends="qt5-qmake qt5-host-tools" hostmakedepends="qt6-tools qt6-base"
makedepends="libpqxx-devel qt5-devel poppler-cpp-devel poppler-qt5-devel makedepends="libpqxx-devel qt6-base-devel poppler-cpp-devel poppler-qt6-devel
sqlite-devel yaz-devel" sqlite-devel yaz-devel"
depends="qt5-plugin-sqlite" depends="qt6-plugin-sqlite"
short_desc="Professional cataloging and library management suite" short_desc="Professional cataloging and library management suite"
maintainer="Orphaned <orphan@voidlinux.org>" maintainer="Rutpiv <roger_freitas@live.com>"
license="BSD-3-Clause" license="BSD-3-Clause"
homepage="https://textbrowser.github.io/biblioteq/" homepage="https://textbrowser.github.io/biblioteq/"
distfiles="https://github.com/textbrowser/biblioteq/archive/${version}.tar.gz" distfiles="https://github.com/textbrowser/biblioteq/archive/${version}.tar.gz"
checksum=e07ffccbee4e1f34a93ab3d9277c393669091b8a957c648bbcce65159f9e0d86 checksum=9b6a72c3e502f5e2e765d09793beb0797271569d085340e1385b81f4f4c8b8cb
conf_files="/etc/biblioteq.conf" conf_files="/etc/biblioteq.conf"
# Set the appropriate build helper and dependencies based on architecture
case "$XBPS_TARGET_MACHINE" in case "$XBPS_TARGET_MACHINE" in
arm*) configure_args+=" biblioteq.arm.pro" ;; ppc*)
*) configure_args+=" biblioteq.pro" ;; configure_file="biblioteq.powerpc.pro"
;;
*) configure_file="biblioteq.pro" ;;
esac esac
pre_configure() { pre_configure() {
sed -i -e 's|biblioteq.conf|/etc/biblioteq.conf|' \ configure_args="-o Makefile ${configure_file}"
-e 's/-mtune=native//' -e 's/-Werror//' biblioteq.arm.pro vsed -i "${configure_file}" -e "s|biblioteq.conf|/etc/biblioteq.conf|"
sed -i -e 's|biblioteq.conf|/etc/biblioteq.conf|' \ # Set paths for cross-compiling without export
-e 's/-mtune=generic//' -e 's/-Werror//' biblioteq.pro 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() { 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 vinstall BiblioteQ 755 usr/lib/BiblioteQ
vcopy Translations 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 vconf biblioteq.conf
vlicense LICENSE vlicense LICENSE
vmkdir usr/bin vmkdir usr/bin
ln -s /usr/lib/BiblioteQ/BiblioteQ ${DESTDIR}/usr/bin/biblioteq ln -s /usr/lib/BiblioteQ/BiblioteQ ${DESTDIR}/usr/bin/biblioteq
} }