mirror of
https://github.com/zyedidia/micro
synced 2024-11-05 17:41:24 +00:00
db32b84cd1
Fixes #1510
31 lines
878 B
YAML
31 lines
878 B
YAML
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
|
|
adopt-info: micro
|
|
|
|
apps:
|
|
micro:
|
|
command: bin/micro
|
|
|
|
parts:
|
|
micro:
|
|
source: .
|
|
source-type: git
|
|
plugin: nil
|
|
build-packages: [make]
|
|
build-snaps: [go]
|
|
build-attributes: [no-patchelf]
|
|
override-pull: |
|
|
snapcraftctl pull
|
|
version="$(go run $SNAPCRAFT_PART_SRC/tools/build-version.go)"
|
|
[ -n "$(echo $version | grep "dev")" ] && grade=devel || grade=stable
|
|
snapcraftctl set-version "$version"
|
|
snapcraftctl set-grade "$grade"
|
|
override-build: |
|
|
make build-tags
|
|
mkdir $SNAPCRAFT_PART_INSTALL/bin
|
|
mv ./micro $SNAPCRAFT_PART_INSTALL/bin/
|