mirror of
https://github.com/neovim/neovim.git
synced 2025-10-22 17:11:49 +00:00
snap: fix/update snap builds
* rename to nvim * bump base to core18 * fix versioning, match binary * set prefix to /usr
This commit is contained in:

committed by
Justin M. Keyes

parent
ee1199eaba
commit
86867c2f95
@@ -1,5 +1,6 @@
|
|||||||
name: neovim
|
name: nvim
|
||||||
version: git
|
base: core18
|
||||||
|
adopt-info: nvim
|
||||||
summary: Vim-fork focused on extensibility and agility.
|
summary: Vim-fork focused on extensibility and agility.
|
||||||
description: |
|
description: |
|
||||||
Neovim is a project that seeks to aggressively refactor Vim in order to:
|
Neovim is a project that seeks to aggressively refactor Vim in order to:
|
||||||
@@ -9,22 +10,33 @@ description: |
|
|||||||
Enable the implementation of new/modern user interfaces without any modifications to the core source
|
Enable the implementation of new/modern user interfaces without any modifications to the core source
|
||||||
Improve extensibility with a new plugin architecture
|
Improve extensibility with a new plugin architecture
|
||||||
For lots more details, see the wiki!
|
For lots more details, see the wiki!
|
||||||
|
|
||||||
|
grade: stable # must be 'stable' to release into candidate/stable channels
|
||||||
confinement: classic
|
confinement: classic
|
||||||
|
|
||||||
apps:
|
apps:
|
||||||
neovim:
|
nvim:
|
||||||
command: usr/local/bin/nvim
|
command: usr/bin/nvim
|
||||||
plugs: [network, network-bind, x11]
|
|
||||||
environment:
|
environment:
|
||||||
HOME: /home/$USER
|
HOME: /home/$USER
|
||||||
VIM: $SNAP/usr/local/share/nvim/runtime
|
VIM: $SNAP/usr/share/nvim/runtime
|
||||||
|
|
||||||
parts:
|
parts:
|
||||||
neovim:
|
nvim:
|
||||||
source: .
|
source: .
|
||||||
|
override-pull: |
|
||||||
|
snapcraftctl pull
|
||||||
|
major="$(awk '/NVIM_VERSION_MAJOR/{gsub(")","",$2); print $2}' CMakeLists.txt)"
|
||||||
|
minor="$(awk '/NVIM_VERSION_MINOR/{gsub(")","",$2); print $2}' CMakeLists.txt)"
|
||||||
|
patch="$(awk '/NVIM_VERSION_PATCH/{gsub(")","",$2); print $2}' CMakeLists.txt)"
|
||||||
|
version_prefix="v$major.$minor.$patch"
|
||||||
|
git_described="$(git describe --first-parent --dirty 2> /dev/null | perl -lpe 's/v\d.\d.\d-//g')"
|
||||||
|
git_described="${git_described:-$(git describe --first-parent --tags --always --dirty)}"
|
||||||
|
snapcraftctl set-version "${version_prefix}-${git_described}"
|
||||||
plugin: make
|
plugin: make
|
||||||
make-parameters:
|
make-parameters:
|
||||||
- CMAKE_BUILD_TYPE=Release
|
- CMAKE_BUILD_TYPE=Release
|
||||||
|
- CMAKE_INSTALL_PREFIX=/usr
|
||||||
build-packages:
|
build-packages:
|
||||||
- ninja-build
|
- ninja-build
|
||||||
- libtool
|
- libtool
|
||||||
@@ -33,9 +45,10 @@ parts:
|
|||||||
- automake
|
- automake
|
||||||
- cmake
|
- cmake
|
||||||
- g++
|
- g++
|
||||||
|
- git
|
||||||
|
- gettext
|
||||||
- pkg-config
|
- pkg-config
|
||||||
- unzip
|
- unzip
|
||||||
snap:
|
prime:
|
||||||
- usr/local/bin
|
- -usr/share/man
|
||||||
- usr/local/share/nvim
|
|
||||||
- -usr/local/share/man
|
|
||||||
|
Reference in New Issue
Block a user