-
Notifications
You must be signed in to change notification settings - Fork 2.6k
Expand file tree
/
Copy pathtemplate
More file actions
45 lines (41 loc) · 1.36 KB
/
template
File metadata and controls
45 lines (41 loc) · 1.36 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
# Template file for 'rclone'
pkgname=rclone
version=1.73.4
revision=1
build_style=go
build_helper="qemu"
go_import_path=github.com/rclone/rclone
go_build_tags="noselfupdate"
go_ldflags="-extldflags=-fuse-ld=bfd -X github.com/rclone/rclone/fs.Version=v${version}"
depends="mime-types"
checkdepends="${depends} rsync unzip"
short_desc="Rsync for cloud storage"
maintainer="Orphaned <orphan@voidlinux.org>"
license="MIT"
homepage="https://rclone.org/"
changelog="https://raw.githubusercontent.com/rclone/rclone/master/docs/content/changelog.md"
distfiles="https://downloads.rclone.org/v${version}/rclone-v${version}.tar.gz"
checksum=20618861f56c7c3d6d6376adb0dc512e3ea9a8c3f668776967a97c5e233089a9
make_check_pre="env RCLONE_CONFIG=/notfound CI=1"
pre_build() {
if [ "$CROSS_BUILD" ] && [ "$XBPS_TARGET_LIBC" = musl ]; then
# XXX: when cross building, the binary has a textrel, which segfaults when
# launched on musl
# FIXME: linkers for the musl toolchains should reject textrels entirely
export CGO_ENABLED=0
fi
}
pre_check() {
rm -f cmd/mount/mount_test.go
rm -f cmd/mount2/mount_test.go
rm -f cmd/gitannex/e2e_test.go
}
post_install() {
ln -sf rclone ${DESTDIR}/usr/bin/mount.rclone
vlicense COPYING
vman rclone.1
for shell in bash zsh fish; do
vtargetrun ${DESTDIR}/usr/bin/rclone genautocomplete $shell completion.$shell
vcompletion completion.$shell $shell
done
}