diff options
author | 林博仁(Buo-ren Lin) <Buo.Ren.Lin@gmail.com> | 2019-03-03 00:13:33 +0800 |
---|---|---|
committer | Caleb Bassi <calebjbassi@gmail.com> | 2019-04-25 11:11:26 -0700 |
commit | 0817bea2bb18880bea0710aa0214eff7088fa04b (patch) | |
tree | 2eb0cb34c2b8cb4a1a1427a28f3105dd4edd911f /snap | |
parent | 56662fda14240e21f6f7bc175b988a25d92f0570 (diff) |
Implement snap packaging, snaps are universal linux packages
This patch implements the necessary details to package gotop as a snap
that can be installed on various GNU/Linux distributions supported by
Snapd.
Signed-off-by: 林博仁(Buo-ren Lin) <Buo.Ren.Lin@gmail.com>
Diffstat (limited to 'snap')
-rw-r--r-- | snap/snapcraft.yaml | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/snap/snapcraft.yaml b/snap/snapcraft.yaml new file mode 100644 index 0000000..bb81316 --- /dev/null +++ b/snap/snapcraft.yaml @@ -0,0 +1,38 @@ +name: gotop-cjbassi +base: core18 +version: determined-by-version-script +version-script: git describe --always --tags --dirty +summary: A terminal based graphical activity monitor inspired by gtop and vtop +description: | + Another terminal based graphical activity monitor, inspired by [gtop](https://github.com/aksakalli/gtop) and [vtop](https://github.com/MrRio/vtop), this time written in [Go](https://golang.org/)! + +grade: stable +confinement: strict +icon: assets/logo.png +license: AGPL-3.0 + +parts: + gotop: + source: . + plugin: go + go-importpath: github.com/cjbassi/gotop + build-packages: + - git-core + - gcc + +plugs: + # Required by the "Temperatures" widget + hardware-observe: + + # Required by the "Disk Usage" widget + mount-observe: + + # Required by the "Processes" widget + system-observe: + +apps: + gotop-cjbassi: + command: bin/gotop + environment: + LANG: C.UTF-8 + LC_ALL: C.UTF-8 |