rclone: fix builtin version string

Also:
- enable tests
- use official site for distfiles
This commit is contained in:
Roberto Ricci 2021-02-09 21:59:03 +01:00 committed by Érico Nogueira Rolim
parent b0a7aced0a
commit 0d33564639
1 changed files with 7 additions and 3 deletions

View File

@ -1,17 +1,17 @@
# Template file for 'rclone'
pkgname=rclone
version=1.54.0
revision=1
revision=2
wrksrc="rclone-v${version}"
build_style=go
go_import_path=github.com/rclone/rclone
go_ldflags="-extldflags=-fuse-ld=bfd"
go_ldflags="-extldflags=-fuse-ld=bfd -X github.com/rclone/rclone/fs.Version=v${version}"
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"
distfiles="https://downloads.rclone.org/v${version}/rclone-v${version}.tar.gz"
checksum=95f952dc059b842bd40338458b77657f7b5a1680c4ca837a3adcf83b63c8fda1
pre_build() {
@ -23,6 +23,10 @@ pre_build() {
fi
}
do_check() {
RCLONE_CONFIG="/notfound" go test ./...
}
post_install() {
vlicense COPYING
vman rclone.1