Compare commits

..

No commits in common. "af67d7557dcd49b422d26a5043b43ddea394ad41" and "e7dbb542ccf4ac187b37244a324f1ade332340cb" have entirely different histories.

10 changed files with 45 additions and 166 deletions

View File

@ -1,39 +1,27 @@
generated-by = makedeb generated-by = makedeb-makepkg
pkgname = neovim-bin
postinst = neovim-bin.postinst
prerm = neovim-bin.prerm
pkgbase = neovim-bin pkgbase = neovim-bin
pkgdesc = Fork of Vim aiming to improve user experience, plugins, and GUIs pkgdesc = Fork of Vim aiming to improve user experience, plugins, and GUIs
pkgrel = 1 pkgver = 0.5.1
pkgver = 0.8.3 pkgrel = 3
url = https://neovim.io url = https://neovim.io
arch = amd64 arch = x86_64
conflicts = neovim license = custom:neovim
conflicts = neovim-git depends = libluajit-5.1-2
conflicts = neovim-runtime depends = libluajit-5.1-common
depends = libluajit-5.1-2 depends = libmsgpackc2
depends = libluajit-5.1-common depends = libtermkey1
depends = libmsgpackc2 depends = libunibilium4
depends = libtermkey1 depends = libvterm0
depends = libunibilium4 depends = lua-luv
depends = libvterm0 optdepends = python-neovim: for Python 3 plugin support (see :help python)
depends = lua-luv optdepends = xclip: for clipboard support on X11 (or xsel) (see :help clipboard)
license = custom:neovim optdepends = xsel: for clipboard support on X11 (or xclip) (see :help clipboard)
optdepends = python-neovim: for Python 3 plugin support (see :help python) optdepends = wl-clipboard: for clipboard support on wayland (see :help clipboard)
optdepends = xclip: for clipboard support on X11 (or xsel) (see :help clipboard) provides = neovim
optdepends = xsel: for clipboard support on X11 (or xclip) (see :help clipboard) conflicts = neovim
optdepends = wl-clipboard: for clipboard support on wayland (see :help clipboard) conflicts = neovim-git
provides = neovim source = https://github.com/neovim/neovim/releases/download/v0.5.1/nvim-linux64.tar.gz
provides = neovim-runtime sha512sums = 4b86c4f876629207a4ca8aff6853287cc7dc8a9133aa750b48bb9b7450cce357b97971eb85faf58eb0b9f3f20a927a5dcf5fd06e541ba7e882ccc4db33c12d6c
source = nvim-linux64-0.8.3.tar.gz::https://github.com/neovim/neovim/releases/download/v0.8.3/nvim-linux64.tar.gz
source = ex pkgname = neovim-bin
source = view
source = vimdiff
sha256sums = 58ac03b345e8675e13322f8c7135906ce26a1ca7a87d041344d64b207be7bedf
sha256sums = 5d3178628afc39f0318638cad19e9ad06ada89926dfb263e93ab35cc8f60e911
sha256sums = 3cb963a264b6cf45749627408b5a62c6945e5e426b595bb5e6a388194c2c1990
sha256sums = 1d3123b9d97a4889696ab72db558041b5cca8e26ff51ae557f7842242a7d4ed1
optdepends = python-neovim: for Python 3 plugin support (see :help python)
optdepends = xclip: for clipboard support on X11 (or xsel) (see :help clipboard)
optdepends = xsel: for clipboard support on X11 (or xclip) (see :help clipboard)
optdepends = wl-clipboard: for clipboard support on wayland (see :help clipboard)

4
.gitignore vendored
View File

@ -1,4 +0,0 @@
pkg/
src/
*.deb
*.tar.gz

View File

@ -4,56 +4,41 @@
# Contributor: Florian Hahn <flo@fhahn.com> # Contributor: Florian Hahn <flo@fhahn.com>
pkgname=neovim-bin pkgname=neovim-bin
pkgver=0.8.3 pkgver=0.5.1
pkgrel=1 pkgrel=3
pkgdesc='Fork of Vim aiming to improve user experience, plugins, and GUIs' pkgdesc='Fork of Vim aiming to improve user experience, plugins, and GUIs'
arch=('amd64') arch=('x86_64')
url='https://neovim.io' url='https://neovim.io'
license=('custom:neovim') license=('custom:neovim')
provides=('neovim' 'neovim-runtime') provides=('neovim')
depends=('libluajit-5.1-2' 'libluajit-5.1-common' 'libmsgpackc2' 'libtermkey1' 'libunibilium4' 'libvterm0' 'lua-luv') depends=('libluajit-5.1-2' 'libluajit-5.1-common' 'libmsgpackc2' 'libtermkey1' 'libunibilium4' 'libvterm0' 'lua-luv')
optdepends=('python-neovim: for Python 3 plugin support (see :help python)' optdepends=('python-neovim: for Python 3 plugin support (see :help python)'
'xclip: for clipboard support on X11 (or xsel) (see :help clipboard)' 'xclip: for clipboard support on X11 (or xsel) (see :help clipboard)'
'xsel: for clipboard support on X11 (or xclip) (see :help clipboard)' 'xsel: for clipboard support on X11 (or xclip) (see :help clipboard)'
'wl-clipboard: for clipboard support on wayland (see :help clipboard)') 'wl-clipboard: for clipboard support on wayland (see :help clipboard)')
conflicts=('neovim' 'neovim-git' 'neovim-runtime') conflicts=('neovim' 'neovim-git')
source=( source=("https://github.com/neovim/neovim/releases/download/v${pkgver}/nvim-linux64.tar.gz")
"nvim-linux64-${pkgver}.tar.gz::https://github.com/neovim/neovim/releases/download/v${pkgver}/nvim-linux64.tar.gz" sha512sums=('4b86c4f876629207a4ca8aff6853287cc7dc8a9133aa750b48bb9b7450cce357b97971eb85faf58eb0b9f3f20a927a5dcf5fd06e541ba7e882ccc4db33c12d6c')
"ex"
"view"
"vimdiff")
postinst="${pkgname}.postinst"
prerm="${pkgname}.prerm"
sha256sums=('58ac03b345e8675e13322f8c7135906ce26a1ca7a87d041344d64b207be7bedf'
'5d3178628afc39f0318638cad19e9ad06ada89926dfb263e93ab35cc8f60e911'
'3cb963a264b6cf45749627408b5a62c6945e5e426b595bb5e6a388194c2c1990'
'1d3123b9d97a4889696ab72db558041b5cca8e26ff51ae557f7842242a7d4ed1')
prepare() { prepare() {
rm -rf nvim-linux64/ tar xvf nvim-linux64.tar.gz
tar -xf "nvim-linux64-${pkgver}.tar.gz"
} }
package() { package() {
echo "Copying application binary" cd "${srcdir}/nvim-linux64"
install -Dm 755 nvim-linux64/bin/nvim -t "${pkgdir}/usr/bin/" echo "Coppying application binary"
install -Dm 755 bin/nvim -t ${pkgdir}/usr/bin/
echo "Copying libraries" echo "Coppying libraries"
install -Dm 644 nvim-linux64/lib/nvim/parser/c.so -t "${pkgdir}/usr/lib/nvim/parser/" install -Dm 644 lib/nvim/parser/c.so -t ${pkgdir}/usr/lib/nvim/parser/
echo "Copying application files" echo "Copying application files"
mkdir -p "${pkgdir}/usr/share/" mkdir -p ${pkgdir}/usr/share/
cp -r nvim-linux64/share/applications "${pkgdir}/usr/share/applications" cp -r share/applications ${pkgdir}/usr/share/applications
cp -r nvim-linux64/share/icons "${pkgdir}/usr/share/icons" cp -r share/icons ${pkgdir}/usr/share/icons
cp -r nvim-linux64/share/locale "${pkgdir}/usr/share/locale" cp -r share/locale ${pkgdir}/usr/share/locale
cp -r nvim-linux64/share/man "${pkgdir}/usr/share/man" cp -r share/man ${pkgdir}/usr/share/man
cp -r nvim-linux64/share/nvim "${pkgdir}/usr/share/nvim" cp -r share/nvim ${pkgdir}/usr/share/nvim
echo "Copying scripts for update-alternatives symbolic links"
mkdir -p "${pkgdir}/usr/libexec/neovim"
install -Dm 755 ex "${pkgdir}/usr/libexec/neovim/"
install -Dm 755 view "${pkgdir}/usr/libexec/neovim/"
install -Dm 755 vimdiff "${pkgdir}/usr/libexec/neovim/"
} }
# vim:set sw=2 sts=2 et: # vim:set sw=2 sts=2 et:

2
ex
View File

@ -1,2 +0,0 @@
#!/bin/sh
exec /usr/bin/nvim -e "$@"

View File

@ -1,14 +0,0 @@
#!/bin/sh
set -e
update-alternatives --install /usr/bin/editor editor /usr/bin/nvim 30 \
--slave /usr/share/man/man1/editor.1.gz editor.1.gz \
/usr/share/man/man1/nvim.1.gz
update-alternatives --install /usr/bin/ex ex /usr/libexec/neovim/ex 30
update-alternatives --install /usr/bin/vi vi /usr/bin/nvim 30
update-alternatives --install /usr/bin/vim vim /usr/bin/nvim 30
update-alternatives --install /usr/bin/view view /usr/libexec/neovim/view 30
update-alternatives --install /usr/bin/vimdiff vimdiff /usr/libexec/neovim/vimdiff 30
exit 0

View File

@ -1,24 +0,0 @@
#!/bin/sh
set -e
case "$1" in
remove|deconfigure)
update-alternatives --remove editor /usr/bin/nvim
update-alternatives --remove ex /usr/libexec/neovim/ex
update-alternatives --remove vi /usr/bin/nvim
update-alternatives --remove vim /usr/bin/nvim
update-alternatives --remove view /usr/libexec/neovim/view
update-alternatives --remove vimdiff /usr/libexec/neovim/vimdiff
;;
upgrade|failed-upgrade)
;;
*)
echo "prerm called with unknown argument '$1'" >&2
exit 0
;;
esac
exit 0

View File

@ -1,18 +0,0 @@
#!/bin/sh
set -e
update-alternatives --install /usr/bin/editor editor /usr/bin/nvim 30 \
--slave /usr/share/man/man1/editor.1.gz editor.1.gz \
/usr/share/man/man1/nvim.1.gz
update-alternatives --install /usr/bin/ex ex /usr/libexec/neovim/ex 30
update-alternatives --install /usr/bin/rvim rvim /usr/libexec/neovim/rvim 30
update-alternatives --install /usr/bin/rview rview /usr/libexec/neovim/rview 30
update-alternatives --install /usr/bin/vi vi /usr/bin/nvim 30
update-alternatives --install /usr/bin/vim vim /usr/bin/nvim 30
update-alternatives --install /usr/bin/view view /usr/libexec/neovim/view 30
update-alternatives --install /usr/bin/vimdiff vimdiff /usr/libexec/neovim/vimdiff 30
exit 0

28
prerm
View File

@ -1,28 +0,0 @@
#!/bin/sh
set -e
case "$1" in
remove|deconfigure)
update-alternatives --remove editor /usr/bin/nvim
update-alternatives --remove ex /usr/libexec/neovim/ex
update-alternatives --remove rvim /usr/libexec/neovim/rvim
update-alternatives --remove rview /usr/libexec/neovim/rview
update-alternatives --remove vi /usr/bin/nvim
update-alternatives --remove vim /usr/bin/nvim
update-alternatives --remove view /usr/libexec/neovim/view
update-alternatives --remove vimdiff /usr/libexec/neovim/vimdiff
;;
upgrade|failed-upgrade)
;;
*)
echo "prerm called with unknown argument '$1'" >&2
exit 0
;;
esac
exit 0

2
view
View File

@ -1,2 +0,0 @@
#!/bin/sh
exec /usr/bin/nvim -R "$@"

View File

@ -1,2 +0,0 @@
#!/bin/sh
exec /usr/bin/nvim -d "$@"