void-packages/srcpkgs/biblioteq/template
2020-01-04 09:17:21 +01:00

45 lines
1.4 KiB
Bash

# Template file for 'biblioteq'
pkgname=biblioteq
version=2020.01.01
revision=1
build_style=qmake
configure_args="-o Makefile"
makedepends="libpqxx-devel qt5-devel poppler-cpp-devel poppler-qt5-devel
sqlite-devel yaz-devel"
depends="qt5-plugin-sqlite"
short_desc="Professional cataloging and library management suite"
maintainer="Orphaned <orphan@voidlinux.org>"
license="BSD-3-Clause"
homepage="https://textbrowser.github.io/biblioteq/"
distfiles="https://github.com/textbrowser/biblioteq/archive/${version}.tar.gz"
checksum=e07ffccbee4e1f34a93ab3d9277c393669091b8a957c648bbcce65159f9e0d86
conf_files="/etc/biblioteq.conf"
case "$XBPS_TARGET_MACHINE" in
arm*) configure_args+=" biblioteq.arm.pro" ;;
*) configure_args+=" biblioteq.pro" ;;
esac
if [ "$CROSS_BUILD" ]; then
hostmakedepends+=" qt5-devel poppler-cpp-devel"
fi
pre_configure() {
sed -i -e 's|biblioteq.conf|/etc/biblioteq.conf|' \
-e 's/-mtune=native//' -e 's/-Werror//' biblioteq.arm.pro
sed -i -e 's|biblioteq.conf|/etc/biblioteq.conf|' \
-e 's/-mtune=generic//' -e 's/-Werror//' biblioteq.pro
}
do_install() {
## 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
vconf biblioteq.conf
vlicense LICENSE
vmkdir usr/bin
ln -s /usr/lib/BiblioteQ/BiblioteQ ${DESTDIR}/usr/bin/biblioteq
}