2018-07-15 06:27:56 +02:00
|
|
|
# Template file for 'biblioteq'
|
|
|
|
pkgname=biblioteq
|
2018-10-02 23:43:20 +02:00
|
|
|
version=2018.10.01
|
2018-07-15 06:27:56 +02:00
|
|
|
revision=1
|
|
|
|
build_style=qmake
|
|
|
|
configure_args="-o Makefile"
|
|
|
|
conf_files="/etc/biblioteq.conf"
|
|
|
|
makedepends="libpqxx-devel qt5-devel poppler-cpp-devel poppler-qt5-devel
|
|
|
|
sqlite-devel yaz-devel"
|
2018-10-02 23:43:20 +02:00
|
|
|
depends="qt5-plugin-sqlite"
|
2018-07-15 06:27:56 +02:00
|
|
|
short_desc="Professional cataloging and library management suite"
|
2018-10-22 18:48:12 +02:00
|
|
|
maintainer="Orphaned <orphan@voidlinux.eu>"
|
2018-07-15 06:27:56 +02:00
|
|
|
license="BSD-3-Clause"
|
|
|
|
homepage="https://textbrowser.github.io/biblioteq/"
|
|
|
|
distfiles="https://github.com/textbrowser/biblioteq/archive/${version}.tar.gz"
|
2018-10-02 23:43:20 +02:00
|
|
|
checksum=97ec333a0240eb3ffb9c3c3461f0bbc71f74267bac8679d12a3c679b865de776
|
2018-07-15 06:27:56 +02:00
|
|
|
|
|
|
|
case "$XBPS_TARGET_MACHINE" in
|
|
|
|
arm*) configure_args+=" biblioteq.arm.pro" ;;
|
|
|
|
*) configure_args+=" biblioteq.pro" ;;
|
|
|
|
esac
|
|
|
|
|
|
|
|
if [ -n "$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
|
|
|
|
}
|