snapcraft: switch back to go build plugin and only build rclone – see #1188

This commit is contained in:
Stefan Breunig 2017-08-12 09:20:37 +02:00
parent e64435a5c1
commit 001431d326
2 changed files with 15 additions and 7 deletions

View file

@ -1,21 +1,25 @@
name: rclone-dev name: rclone-beta
version: dev-latest version: rclone-latest
summary: rsync for cloud storage summary: rsync for cloud storage
description: description:
Rclone is a command line program to sync files to and from cloud storage providers such as Rclone is a command line program to sync files to and from cloud storage providers such as
Google Drive, Amazon Drive, S3, Dropbox, Backblaze B2, OneDrive, Swift, Hubic, Cloudfiles, Google Cloud Storage, Yandex Files. Google Drive, Amazon Drive, S3, Dropbox, Backblaze B2, OneDrive, Swift, Hubic, Cloudfiles, Google Cloud Storage, Yandex Files.
confinement: strict confinement: strict
grade: devel grade: stable
apps: apps:
rclone: rclone:
command: usr/bin/rclone command: bin/rclone
plugs: [home, network, network-bind, fuse-support] plugs: [home, network, network-bind, fuse-support]
parts: parts:
rclone: rclone:
plugin: make plugin: go
source: https://github.com/ncw/rclone source: https://github.com/ncw/rclone
source-type: git source-type: git
stage-packages: [fuse] stage-packages: [fuse]
build-packages: [gcc, libgudev-1.0-dev, fuse] build-packages: [gcc, libgudev-1.0-dev, fuse]
go-importpath: github.com/ncw/rclone
# Snapcraft's go plugin tries to build binaries for all dependencies, but rclone doesn't need them.
# This instruct it to only build rclone.
go-packages: [github.com/ncw/rclone]

View file

@ -9,14 +9,18 @@ grade: stable
apps: apps:
rclone: rclone:
command: usr/bin/rclone command: bin/rclone
plugs: [home, network, network-bind, fuse-support] plugs: [home, network, network-bind, fuse-support]
parts: parts:
rclone: rclone:
plugin: make plugin: go
source: https://github.com/ncw/rclone source: https://github.com/ncw/rclone
source-tag: v1.37 source-tag: v1.37
source-type: git source-type: git
stage-packages: [fuse] stage-packages: [fuse]
build-packages: [gcc, libgudev-1.0-dev, fuse] build-packages: [gcc, libgudev-1.0-dev, fuse]
go-importpath: github.com/ncw/rclone
# Snapcraft's go plugin tries to build binaries for all dependencies, but rclone doesn't need them.
# This instruct it to only build rclone.
go-packages: [github.com/ncw/rclone]