2016-09-01 07:13:00 +03: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 13:04:08 +03:00
|
|
|
confinement: classic
|
2020-02-14 05:27:07 +03:00
|
|
|
adopt-info: micro
|
2016-09-01 07:13:00 +03:00
|
|
|
|
|
|
|
apps:
|
|
|
|
micro:
|
|
|
|
command: bin/micro
|
|
|
|
|
|
|
|
parts:
|
|
|
|
micro:
|
|
|
|
source: .
|
2017-07-27 01:35:16 +03:00
|
|
|
source-type: git
|
2018-04-03 07:53:24 +03:00
|
|
|
plugin: nil
|
2018-04-03 07:16:19 +03:00
|
|
|
build-packages: [make]
|
2019-12-27 02:54:40 +03:00
|
|
|
build-snaps: [go]
|
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
|
|
|
|
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
|
2017-07-27 01:35:16 +03:00
|
|
|
mkdir $SNAPCRAFT_PART_INSTALL/bin
|
2019-12-27 02:54:40 +03:00
|
|
|
mv ./micro $SNAPCRAFT_PART_INSTALL/bin/
|