2016-09-01 04:13:00 +00:00
|
|
|
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.
|
2017-04-28 10:04:08 +00:00
|
|
|
confinement: classic
|
2020-02-14 02:27:07 +00:00
|
|
|
adopt-info: micro
|
2016-09-01 04:13:00 +00:00
|
|
|
|
|
|
|
apps:
|
|
|
|
micro:
|
|
|
|
command: bin/micro
|
|
|
|
|
|
|
|
parts:
|
|
|
|
micro:
|
|
|
|
source: .
|
2017-07-26 22:35:16 +00:00
|
|
|
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
|
2017-07-26 22:35:16 +00:00
|
|
|
mkdir $SNAPCRAFT_PART_INSTALL/bin
|
2019-12-26 23:54:40 +00:00
|
|
|
mv ./micro $SNAPCRAFT_PART_INSTALL/bin/
|