2023-05-22 02:22:50 +00:00
|
|
|
#/usr/bin/env bash
|
|
|
|
|
|
|
|
pkgname="neovim"
|
2023-08-02 14:30:49 +00:00
|
|
|
arch="amd64"
|
2023-05-22 02:22:50 +00:00
|
|
|
pkgver="0.9.0"
|
2023-07-08 14:17:17 +00:00
|
|
|
pkgrel=5
|
2023-05-22 02:22:50 +00:00
|
|
|
pkgcommit=""
|
|
|
|
pkgdesc="A modern editor"
|
|
|
|
url="https://github.com/neovim/neovim"
|
|
|
|
maintainer="Leafee98 <me@leafee98.com>"
|
|
|
|
|
|
|
|
source=(
|
|
|
|
"nvim-linux64.tar.gz::https://github.com/neovim/neovim/releases/download/v${pkgver}/nvim-linux64.tar.gz"
|
|
|
|
)
|
|
|
|
|
|
|
|
function package {
|
2023-05-22 02:42:40 +00:00
|
|
|
mkdir -p "${pkgdir}/usr/local"
|
2023-06-30 14:07:33 +00:00
|
|
|
mv "${srcdir}/nvim-linux64/bin" "${pkgdir}/usr/bin"
|
|
|
|
mv "${srcdir}/nvim-linux64/lib" "${pkgdir}/usr/lib"
|
|
|
|
mv "${srcdir}/nvim-linux64/share" "${pkgdir}/usr/share"
|
2023-05-22 02:22:50 +00:00
|
|
|
}
|
2023-07-08 14:17:17 +00:00
|
|
|
|
|
|
|
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
|
|
|
|
}
|