void-packages/srcpkgs/rclone/template
2021-01-24 17:30:29 -03:00

29 lines
920 B
Bash

# Template file for 'rclone'
pkgname=rclone
version=1.53.4
revision=1
wrksrc="rclone-v${version}"
build_style=go
go_import_path=github.com/rclone/rclone
go_ldflags="-extldflags=-fuse-ld=bfd"
short_desc="Rsync for cloud storage"
maintainer="Diogo Leal <diogo@diogoleal.com>"
license="MIT"
homepage="https://rclone.org/"
changelog="https://raw.githubusercontent.com/rclone/rclone/master/docs/content/changelog.md"
distfiles="https://github.com/rclone/rclone/releases/download/v${version}/rclone-v${version}.tar.gz"
checksum=68b231a917872b36d73f48b19d2ba98fdaca467e9b433105fa7f4dc3b15f556b
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
}
post_install() {
vlicense COPYING
vman rclone.1
}