void-packages/srcpkgs/seafile-client-qt/template
2020-02-18 14:15:50 +01:00

49 lines
1.6 KiB
Bash

# Template file for 'seafile-client-qt'
pkgname=seafile-client-qt
version=7.0.6
revision=1
_sourcename="seafile-client"
wrksrc="${_sourcename}-${version}"
build_style=cmake
configure_args="$(vopt_if shibboleth -DBUILD_SHIBBOLETH_SUPPORT=ON)"
hostmakedepends="pkg-config"
makedepends="qt5-tools-devel seafile-libclient-devel sqlite-devel libevent-devel
$(vopt_if shibboleth 'qt5-webengine-devel qt5-declarative-devel qt5-webchannel-devel qt5-location-devel')"
short_desc="Cloud storage system - Qt graphical client"
maintainer="yopito <pierre.bourgin@free.fr>"
license="Apache-2.0"
homepage="https://seafile.com"
distfiles="https://github.com/haiwen/seafile-client/archive/v${version}.tar.gz"
checksum=95bba5a904c47e189e57b44f646b5be34965902f7fdebb84a8beeb78d3df922f
build_options="shibboleth"
desc_option_shibboleth="Build with Shibboleth support"
# no arm by default (webengine does not crosscompile from 64-bit to 32-bit)
case "$XBPS_TARGET_MACHINE" in
x86_64*|i686*|ppc64le*|aarch64*) build_options_default="shibboleth" ;;
esac
case "$XBPS_TARGET_MACHINE" in
*-musl) # need fts implementation
makedepends+=" musl-fts-devel" ;;
esac
if [ "$CROSS_BUILD" ]; then
hostmakedepends+=" qt5-qmake qt5-host-tools qt5-tools"
fi
pre_configure() {
case "$XBPS_TARGET_MACHINE" in
*-musl)
# append '-ltfs' argument on link via cmake (macro TARGET_LINK_LIBRARIES)
# "LDFLAGS=-lfts" does not work, its prepends it (useless)
# XXX prefer patch on CMakeLists.txt ?
sed -i -e 's,\(\${EXTRA_LIBS}\)$,\1 -lfts,' ${wrksrc}/CMakeLists.txt
;;
esac
}
post_install() {
vdoc README.md
}