diff options
Diffstat (limited to 'community/rclone/APKBUILD')
-rw-r--r-- | community/rclone/APKBUILD | 54 |
1 files changed, 34 insertions, 20 deletions
diff --git a/community/rclone/APKBUILD b/community/rclone/APKBUILD index c5fe4be54ef..7c568c5c45d 100644 --- a/community/rclone/APKBUILD +++ b/community/rclone/APKBUILD @@ -1,30 +1,36 @@ -# Maintainer: Chloe Kudryavtsev <toast@toast.cafe> +# Contributor: Chloe Kudryavtsev <code@toast.bunkerlabs.net> +# Maintainer: Mike Crute <mike@crute.us> pkgname=rclone -pkgver=1.56.2 -pkgrel=0 +pkgver=1.66.0 +pkgrel=1 pkgdesc="Rsync for cloud storage" url="https://rclone.org/" -# riscv64 blocked by binutils-gold -arch="all !riscv64" +# s390x: https://github.com/cronokirby/saferith/pull/51 +arch="all !s390x" license="MIT" -makedepends="binutils-gold go" +makedepends="go" checkdepends="fuse" -options="!check net" # tests fail in CI due filesystem access +subpackages="$pkgname-doc $pkgname-bash-completion $pkgname-fish-completion $pkgname-zsh-completion" source="rclone-$pkgver.tar.gz::https://github.com/rclone/rclone/archive/refs/tags/v$pkgver.tar.gz" -subpackages="$pkgname-doc" +options="!check net" # tests fail in CI due filesystem access -export GO111MODULE=on -export GOPATH="$srcdir" -export CGO_ENABLED=0 +export GOCACHE="${GOCACHE:-"$srcdir/go-cache"}" +export GOTMPDIR="${GOTMPDIR:-"$srcdir"}" +export GOMODCACHE="${GOMODCACHE:-"$srcdir/go"}" build() { go build + + ./rclone genautocomplete bash rclone.bash + ./rclone genautocomplete fish rclone.fish + ./rclone genautocomplete zsh rclone.zsh } check() { # backend/{ftp,sftp,swift,webdav,seafile}: uses docker(1) for tests # backend/{local,memory}: fails in docker envs, but not on real machines # fs/rc: fails on ppc64le + # shellcheck disable=SC2046 go test $(go list ./... | grep -v \ -e 'backend/ftp$' \ -e 'backend/local$' \ @@ -38,18 +44,26 @@ check() { } package() { - install -Dm755 "$builddir"/"$pkgname" \ - "$pkgdir"/usr/bin/"$pkgname" + install -Dm755 "$builddir"/rclone \ + "$pkgdir"/usr/bin/rclone - install -Dm644 "$builddir"/"$pkgname".1 \ - "$pkgdir"/usr/share/man/man1/"$pkgname".1 -} + mkdir -p "$pkgdir"/sbin + ln -sfv ../usr/bin/rclone "$pkgdir"/sbin/mount.rclone + ln -sfv rclone "$pkgdir"/usr/bin/rclonefs + + install -Dm644 "$builddir"/rclone.1 \ + "$pkgdir"/usr/share/man/man1/rclone.1 + + install -Dm644 "$builddir"/rclone.bash \ + "$pkgdir"/usr/share/bash-completion/completions/rclone + + install -Dm644 "$builddir"/rclone.fish \ + "$pkgdir"/usr/share/fish/vendor_completions.d/rclone.fish -cleanup_srcdir() { - go clean -modcache - default_cleanup_srcdir + install -Dm644 "$builddir"/rclone.zsh \ + "$pkgdir"/usr/share/zsh/site-functions/_rclone } sha512sums=" -472bc07192f72a6489a11f710995304789c57356e8170dc912955b3b7d2b29dde5c1522d3fa9a3a40b66a1ed91dcc6dd11cee221f5887e54641eb06296721e5a rclone-1.56.2.tar.gz +955ed1457ebe7e6ac2288484109ba263601e147f767ce71b70e14ddcf3f97659d90704de094e4e83c0820267e0f41b1950fc3db534bb3577bcf27f0a2401eb84 rclone-1.66.0.tar.gz " |