glances/snap/snapcraft.yaml
林博仁(Buo-ren Lin) 044fd14137 Implement custom snap version string generation
The snap version string generated by the `git` value of the `version`
key isn't mimicing the previous versioning style due to the prefixing
`v` in the git tag, this patch replace it with a custom implementation
based on the `version-script` key.

Note the `version` key is still required to exist due to schema
requirements, but has no effect when the `version-script` key is
defined.

Reference:

    Snapcraft version scripts - snapcraft - snapcraft.io
    https://forum.snapcraft.io/t/snapcraft-version-scripts/106

Signed-off-by: 林博仁(Buo-ren Lin) <Buo.Ren.Lin@gmail.com>
2019-01-26 04:44:03 +08:00

41 lines
1013 B
YAML

name: glances
version: set-by-version-script
version-script: git describe --always --dirty --tags --match 'v*' | sed s/^v//
summary: Glances an Eye on your system. A top/htop alternative.
description: |
Glances is a cross-platform monitoring tool which aims to present
a maximum of information in a minimum of space through a curses or
Web based interface. It can adapt dynamically the displayed information
depending on the user interface size.
grade: stable
confinement: strict
apps:
glances:
command: bin/glances
plugs:
- network
- system-observe
- mount-observe
- hardware-observe
- log-observe
- network-observe
- physical-memory-observe
- upower-observe
- home
environment:
LANG: C.UTF-8
LC_ALL: C.UTF-8
parts:
glances:
plugin: python
source: .
bottle:
plugin: python
source: https://github.com/bottlepy/bottle.git
docker:
plugin: python
source: https://github.com/docker/docker-py.git