43 lines
1.3 KiB
Bash
43 lines
1.3 KiB
Bash
# Template file for 'seafile-client-qt'
|
|
pkgname=seafile-client-qt
|
|
version=6.0.0
|
|
revision=1
|
|
_sourcename="seafile-client"
|
|
wrksrc="${_sourcename}-${version}"
|
|
build_style=cmake
|
|
configure_args="-DUSE_QT5=ON"
|
|
|
|
# nocross since qt unavailable for arm* architecture
|
|
nocross=yes
|
|
hostmakedepends="pkg-config"
|
|
makedepends="sqlite-devel jansson-devel ccnet-devel libsearpc-devel
|
|
libressl-devel seafile-libclient-devel libevent-devel libuuid-devel
|
|
qt5-devel qt5-tools-devel desktop-file-utils"
|
|
|
|
short_desc="Cloud storage system - Qt graphical client"
|
|
maintainer="yopito <pierre.bourgin@free.fr>"
|
|
license="ASL-2"
|
|
homepage="https://github.com/haiwen/${_sourcename}"
|
|
distfiles="https://github.com/haiwen/${_sourcename}/archive/v${version}.tar.gz>${pkgname}-${version}.tar.gz"
|
|
checksum=06a32b0ce34ab7f0ef298520f9ef4b24c1b9c4c2e5a8d8f248cc444ef6bd0544
|
|
|
|
case "$XBPS_TARGET_MACHINE" in
|
|
*-musl) # Add musl-fts implementation
|
|
makedepends+=" musl-fts-devel"
|
|
;;
|
|
esac
|
|
|
|
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"
|
|
}
|