micro/snapcraft.yaml

32 lines
878 B
YAML
Raw Normal View History

name: micro
summary: A modern and intuitive terminal-based text editor
description: |
Micro is a terminal-based text editor that aims to be easy to use and
intuitive, while also taking advantage of the full capabilities of modern
terminals.
confinement: classic
2020-02-14 02:27:07 +00:00
adopt-info: micro
apps:
micro:
command: bin/micro
parts:
micro:
source: .
source-type: git
2018-04-03 04:53:24 +00:00
plugin: nil
2018-04-03 04:16:19 +00:00
build-packages: [make]
2019-12-26 23:54:40 +00:00
build-snaps: [go]
2019-12-27 02:41:19 +00:00
build-attributes: [no-patchelf]
2020-02-14 02:27:07 +00:00
override-pull: |
snapcraftctl pull
2020-02-14 20:52:20 +00:00
version="$(go run $SNAPCRAFT_PART_SRC/tools/build-version.go)"
2020-02-14 02:27:07 +00:00
[ -n "$(echo $version | grep "dev")" ] && grade=devel || grade=stable
snapcraftctl set-version "$version"
snapcraftctl set-grade "$grade"
2019-12-27 02:41:19 +00:00
override-build: |
2020-02-14 00:57:31 +00:00
make build-tags
mkdir $SNAPCRAFT_PART_INSTALL/bin
2019-12-26 23:54:40 +00:00
mv ./micro $SNAPCRAFT_PART_INSTALL/bin/