4b97cd2fb4
```sh git grep -l '^patch_args=-Np0' "srcpkgs/$1*/template" | while read template; do for p in ${template%/template}/patches/*; do sed -i ' \,^[+-][+-][+-] /dev/null,b /^[*-]\+ [0-9]\+\(,[0-9]\+\)\? [*-]\+$/b s,^[*][*][*] ,&a/, /^--- /{ s,\(^--- \)\(./\)*,\1a/, s,[.-][Oo][Rr][Ii][Gg]\([ /]\),\1, s/[.-][Oo][Rr][Ii][Gg]$// s/[.]patched[.]\([^.]\)/.\1/ h } /^+++ -/{ g s/^--- a/+++ b/ b } s,\(^+++ \)\(./\)*,\1b/, ' "$p" done sed -i '/^patch_args=/d' $template done ```
45 lines
1.4 KiB
Bash
45 lines
1.4 KiB
Bash
# Template file for 'seafile-client-qt'
|
|
pkgname=seafile-client-qt
|
|
version=8.0.2
|
|
revision=1
|
|
_sourcename="seafile-client"
|
|
wrksrc="${_sourcename}-${version}"
|
|
build_style=cmake
|
|
configure_args="$(vopt_if shibboleth '-DBUILD_SHIBBOLETH_SUPPORT=ON -DUSE_QT_WEBKIT=ON')"
|
|
hostmakedepends="pkg-config"
|
|
makedepends="qt5-tools-devel seafile-libclient-devel sqlite-devel libevent-devel
|
|
$(vopt_if shibboleth 'qt5-webkit-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=a6be7e55236cd4fb6028259ab5f35163ce044811f45b6008f280d42f5cee9f8d
|
|
|
|
build_options="shibboleth"
|
|
desc_option_shibboleth="Build with Shibboleth support"
|
|
build_options_default="shibboleth"
|
|
|
|
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
|
|
}
|