47 lines
1.5 KiB
Bash
47 lines
1.5 KiB
Bash
# Template file for 'seafile-client-qt'
|
|
pkgname=seafile-client-qt
|
|
version=6.1.8
|
|
revision=1
|
|
_sourcename="seafile-client"
|
|
wrksrc="${_sourcename}-${version}"
|
|
build_style=cmake
|
|
configure_args="$(vopt_if shibboleth -DBUILD_SHIBBOLETH_SUPPORT=ON)"
|
|
hostmakedepends="pkg-config"
|
|
makedepends="ccnet-devel qt5-tools-devel seafile-libclient-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://github.com/haiwen/${_sourcename}"
|
|
distfiles="https://github.com/haiwen/${_sourcename}/archive/v${version}.tar.gz>${pkgname}-${version}.tar.gz"
|
|
checksum=daef6d2b5be5659dca55bc782262f7c7cc5a8e4b0b4db5f4a7fedad9e061e6db
|
|
|
|
build_options="shibboleth"
|
|
desc_option_shibboleth="Build with Shibboleth support"
|
|
build_options_default="shibboleth"
|
|
|
|
case "$XBPS_TARGET_MACHINE" in
|
|
*-musl) # Add musl-fts implementation
|
|
makedepends+=" musl-fts-devel"
|
|
;;
|
|
esac
|
|
|
|
if [ -n "$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
|
|
}
|