From 094efd81aa74e317825fc52d7310147efb1c651e Mon Sep 17 00:00:00 2001 From: yopito Date: Wed, 8 Jun 2016 10:04:14 +0200 Subject: [PATCH] seafile-client-qt: update to 5.1.2 --- srcpkgs/seafile-client-qt/template | 23 ++++++++++++++++++++--- 1 file changed, 20 insertions(+), 3 deletions(-) diff --git a/srcpkgs/seafile-client-qt/template b/srcpkgs/seafile-client-qt/template index 80a5c038783..4fe439ab8c4 100644 --- a/srcpkgs/seafile-client-qt/template +++ b/srcpkgs/seafile-client-qt/template @@ -1,11 +1,11 @@ # Template file for 'seafile-client-qt' pkgname=seafile-client-qt -version=5.1.1 +version=5.1.2 revision=1 _sourcename="seafile-client" wrksrc="${_sourcename}-${version}" build_style=cmake -configure_args="-D CMAKE_BUILD_TYPE=Release -D USE_QT5=ON ." +configure_args="-DUSE_QT5=ON" # nocross since qt unavailable for arm* architecture nocross=yes @@ -19,7 +19,24 @@ maintainer="yopito " 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=0148cbdb97dcd58e6ebec738c8f6bc476192f0b9156f0783199f1213c4d0322f +checksum=ee62eecb410530174b1d184a5b46dce83a164f0b1fe162411dc594125151e02f + +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"