-
Notifications
You must be signed in to change notification settings - Fork 6
/
snapcraft.yaml
36 lines (33 loc) · 932 Bytes
/
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
name: godd
summary: godd is a nice dd replacement
description: |
godd is a nice improvement over dd as it has nice progress bars and
knows about target devices and can stream from http and decompress
on the fly.
This means it is possible to e.g. install a Ubuntu Core image via
godd http://cdimage.../ubuntu-core-16-amd64.img.xz /dev/sdc
version: 0.6
confinement: devmode
apps:
godd:
command: bin/godd
parts:
godd:
plugin: go
source: .
go-importpath: github.com/mvo5/godd
stage-packages: [libgudev-1.0-dev]
override-build: |
# the horror the horror
sudo mv /usr/bin/go /usr/bin/go.system
sudo ln -s /snap/bin/go /usr/bin/go
snapcraftctl build
sudo rm /usr/bin/go
sudo mv /usr/bin/go.system /usr/bin/go
build-snaps:
- go
prime:
- usr/lib/*/libgudev-1.0.so*
- usr/lib/*/libobject-2.0.so*
- usr/lib/*/libglib-2.0.so*
- bin/godd*