micro/snapcraft.yaml

32 lines
868 B
YAML
Raw Permalink 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 05:27:07 +03:00
adopt-info: micro
2023-09-06 23:31:21 +03:00
base: core20
apps:
micro:
command: bin/micro
parts:
micro:
source: .
source-type: git
2023-09-06 23:31:21 +03:00
plugin: go
2018-04-03 07:16:19 +03:00
build-packages: [make]
2019-12-27 05:41:19 +03:00
build-attributes: [no-patchelf]
2020-02-14 05:27:07 +03:00
override-pull: |
snapcraftctl pull
2020-02-14 23:52:20 +03:00
version="$(go run $SNAPCRAFT_PART_SRC/tools/build-version.go)"
2020-02-14 05:27:07 +03:00
[ -n "$(echo $version | grep "dev")" ] && grade=devel || grade=stable
2023-09-07 00:02:29 +03:00
snapcraftctl set-version "$version"
snapcraftctl set-grade "$grade"
2019-12-27 05:41:19 +03:00
override-build: |
2020-02-14 03:57:31 +03:00
make build-tags
mkdir $SNAPCRAFT_PART_INSTALL/bin
2019-12-27 02:54:40 +03:00
mv ./micro $SNAPCRAFT_PART_INSTALL/bin/