modify neovim, update-alternatives at hooks
All checks were successful
ci/woodpecker/push/build_bin Pipeline was successful
ci/woodpecker/push/build_other Pipeline was successful

This commit is contained in:
leafee98 2023-07-08 22:17:17 +08:00
parent 7b887c0f3a
commit c3c55ab1fc

View file

@ -2,7 +2,7 @@
pkgname="neovim" pkgname="neovim"
pkgver="0.9.0" pkgver="0.9.0"
pkgrel=4 pkgrel=5
pkgcommit="" pkgcommit=""
pkgdesc="A modern editor" pkgdesc="A modern editor"
url="https://github.com/neovim/neovim" url="https://github.com/neovim/neovim"
@ -18,3 +18,15 @@ function package {
mv "${srcdir}/nvim-linux64/lib" "${pkgdir}/usr/lib" mv "${srcdir}/nvim-linux64/lib" "${pkgdir}/usr/lib"
mv "${srcdir}/nvim-linux64/share" "${pkgdir}/usr/share" mv "${srcdir}/nvim-linux64/share" "${pkgdir}/usr/share"
} }
function debian_postinst {
cat << EOF
update-alternatives --install /usr/bin/editor editor /usr/bin/nvim 80
EOF
}
function debian_prerm {
cat << EOF
update-alternatives --remove editor /usr/bin/nvim
EOF
}