/
snapcraft.yaml
49 lines (42 loc) · 1.12 KB
/
snapcraft.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
name: rclone
base: core22
adopt-info: rclone
summary: rsync for cloud storage
description: |
Rclone ("rsync for cloud storage") is a command-line program to sync files and directories to and from different cloud storage providers.
Please note that this is a community-maintained package. Use at your own risk.
Due to the strict permissions control of Snap, some features may not work.
architectures:
- build-on: amd64
- build-on: arm64
- build-on: armhf
grade: stable
confinement: strict
apps:
rclone:
command: bin/rclone
plugs:
- home
- network
- network-bind
- removable-media
parts:
rclone:
plugin: go
build-snaps:
- go
source-type: git
source: https://github.com/rclone/rclone
source-tag: 'v1.64.2'
source-depth: 1
override-pull: |
craftctl default
craftctl set version=$(git describe --tags --abbrev=0 | tr -d 'v')
build-environment:
- CGO_ENABLED: 0
- GOTAGS: snap
override-build: |
mkdir -p $CRAFT_PART_INSTALL/bin
cd $CRAFT_PART_SRC
make
cp $(go env GOPATH)/bin/rclone $CRAFT_PART_INSTALL/bin/