Package Details: rclone-git 1.41.r8.g50dc5fe9-1

Git Clone URL: https://aur.archlinux.org/rclone-git.git (read-only)
Package Base: rclone-git
Description: Sync files to and from Google Drive, S3, Swift, Cloudfiles, Dropbox and Google Cloud Storage
Upstream URL: http://rclone.org/
Licenses: MIT
Conflicts: rclone
Provides: rclone
Submitter: serialoverflow
Maintainer: FabioLolix (Saren)
Last Packager: FabioLolix
Votes: 0
Popularity: 0.000000
First Submitted: 2017-02-22 13:27
Last Updated: 2018-04-30 23:05

Dependencies (5)

Required by (7)

Sources (1)

Latest Comments

Saren commented on 2017-12-10 17:52

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

Any interest in maintaining this package?

ChlorideCull commented on 2017-08-10 18:27

@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

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

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

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