# Maintainer: Chloe Kudryavtsev pkgname=rclone pkgver=1.49.3 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="88f7f1f74c7a880df78aff87c9679faac8a3dcdd6b48466788a9594041aeb92bd2482f115ff6c53a2e82855c0bff810149af977b717e7de8319f713ac7a39f23 rclone-1.49.3.tar.gz"