Package Details: rclone-git 1.65.0.r31.g8503282a5-1

Git Clone URL: https://aur.archlinux.org/rclone-git.git (read-only, click to copy)
Package Base: rclone-git
Description: Sync files to and from Google Drive, S3, Swift, Cloudfiles, Dropbox and Google Cloud Storage
Upstream URL: https://rclone.org/
Keywords: cloud gdrive mega pcloud s3
Licenses: MIT
Conflicts: rclone
Provides: rclone
Submitter: serialoverflow
Maintainer: FabioLolix
Last Packager: FabioLolix
Votes: 3
Popularity: 0.005484
First Submitted: 2017-02-22 13:27 (UTC)
Last Updated: 2023-12-27 14:37 (UTC)

Dependencies (5)

Required by (21)

Sources (1)

Latest Comments

burger commented on 2021-05-02 02:45 (UTC) (edited on 2021-05-02 02:46 (UTC) by burger)

A recent commit fixed an issue with onedrive, @FabioLolix could you update the sources?

yochananmarqos commented on 2020-11-01 01:01 (UTC)

@FabioLolix: Please update the PKGBUILD for updated Go package guidelines, see the community/rclone PKGBUILD.

L0ric0 commented on 2020-07-21 18:00 (UTC) (edited on 2020-07-21 18:04 (UTC) by L0ric0)

i think as of https://github.com/rclone/rclone/commit/4a82251c6293ab2aa052a490678e4fd68e55715f pandoc is no longer a make dependency

(the manpage is in the repository)

Saren commented on 2017-12-10 17:52 (UTC) (edited on 2017-12-10 17:52 (UTC) by Saren)

Here is the PKGBUILD that works for me, copied from extra/rclone

_pkgname=rclone
pkgname="${_pkgname}-git"
pkgver=v1.38.r223.g7c972d37
pkgrel=1
pkgdesc="Sync files to and from Google Drive, S3, Swift, Cloudfiles, Dropbox and Google Cloud Storage"
arch=('x86_64')
url="http://rclone.org/"
license=('MIT')
depends=('glibc')
makedepends=('python2' 'pandoc' 'go-pie')
source=("${_pkgname}::git+https://github.com/ncw/${_pkgname}.git")
conflicts=("${_pkgname}")
provides=("${_pkgname}")
sha256sums=('SKIP')

pkgver() {
    cd "${_pkgname}"
    git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
}

prepare() {
  cd ${_pkgname}

  sed -i "1s/python$/&2/" bin/make_manual.py

  mkdir -p .gopath/src/github.com/ncw
  ln -sf "$PWD" .gopath/src/github.com/ncw/rclone
  export GOPATH="$PWD/.gopath"

  go get github.com/ncw/rclone
}

build() {
  cd ${_pkgname}/.gopath/src/github.com/ncw/rclone

  PATH="$GOPATH/bin:$PATH" make TAG=v$pkgver rclone doc
}

check() {
  cd ${_pkgname}/.gopath/src/github.com/ncw/rclone
  make TAG=v$pkgver test || warning "Tests failed"
}

package() {
  cd ${_pkgname}/.gopath/src/github.com/ncw/rclone
  make TAG=v$pkgver DESTDIR="$pkgdir" install

  install -Dm644 COPYING "$pkgdir/usr/share/licenses/$pkgname/COPYING"

  install -Dm644 rclone.1 "$pkgdir/usr/share/man/man1/rclone.1"
  install -d "$pkgdir/usr/share/doc/$pkgname"
  install -t "$pkgdir/usr/share/doc/$pkgname" -m644 MANUAL.html MANUAL.txt
}

timofonic commented on 2017-10-27 20:06 (UTC)

Any interest in maintaining this package?

ChlorideCull commented on 2017-08-10 18:27 (UTC)

@serialoverflow: You can use a pkgver() function, see the wiki <https://wiki.archlinux.org/index.php/VCS_package_guidelines#Git> And yes, this fails to build.

prometheus commented on 2017-06-28 16:56 (UTC)

Error when trying to build: go install -v --ldflags "-s -X github.com/ncw/rclone/fs.Version=v1.36-222-gf3c7e1a9" go install: no install location for directory /tmp/pkgbuild-0/rclone-git/src/rclone outside GOPATH For more details see: 'go help gopath' make: *** [Makefile:18: rclone] Error 1 ==> ERROR: A failure occurred in build(). Aborting... ==> ERROR: the build failed -> Status failed (1): rclone-git

serialoverflow commented on 2017-03-02 20:12 (UTC) (edited on 2017-03-02 21:41 (UTC) by serialoverflow)

it does pull the latest version from git (master branch). that means it is usually even more current than the "latest" package under http://beta.rclone.org. as far as i know, there is no better way to display the version of git packages. if you know a better one, please share but this seems to be the convention.

bcc commented on 2017-03-02 17:39 (UTC)

can this package just pull the latest git version from github, rather be version controlled? (Its currently out of date too)