mirror of
https://github.com/void-linux/void-packages.git
synced 2025-07-25 23:12:57 +02:00
biblioteq: update to 2025.05.17, adopt.
This commit is contained in:
parent
b52fe93e66
commit
b690e10279
1 changed files with 30 additions and 17 deletions
|
@ -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 <orphan@voidlinux.org>"
|
||||
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=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
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue