# Maintainer: Chloe Kudryavtsev pkgname=rclone pkgver=1.49.5 pkgrel=0 pkgdesc="Rsync for cloud storage" url="https://rclone.org/" arch="all" license="MIT" makedepends="go" options="net" source="$pkgname-$pkgver.tar.gz::https://github.com/ncw/$pkgname/archive/v$pkgver.tar.gz" subpackages="$pkgname-doc" export GOPATH="$srcdir" export CGO_ENABLED=0 build() { GO111MODULE=on go build -o bin/"$pkgname" } check() { GO111MODULE=on go test ./... } package() { install -Dm755 "$builddir"/bin/"$pkgname" \ "$pkgdir"/usr/bin/"$pkgname" install -Dm644 "$builddir"/"$pkgname".1 \ "$pkgdir"/usr/share/man/man1/"$pkgname".1 } cleanup_srcdir() { go clean -modcache default_cleanup_srcdir } sha512sums="1fe1338eaf69ca0ca9e8705af0e4b9856aa97345b6eb1c2d604d40090da0f37a26550bed4c86c14a0c873d92428a96a0012b48c2d44984fe6dea00b89d946d0d rclone-1.49.5.tar.gz"