more comprehensive build
This commit is contained in:
22
PKGBUILD
22
PKGBUILD
@@ -5,13 +5,13 @@
|
||||
|
||||
pkgname=neovim-bin
|
||||
pkgver=0.10.0
|
||||
pkgrel=1
|
||||
pkgrel=2
|
||||
pkgdesc='Fork of Vim aiming to improve user experience, plugins, and GUIs'
|
||||
arch=('amd64')
|
||||
url='https://neovim.io'
|
||||
license=('custom:neovim')
|
||||
provides=('neovim' 'neovim-runtime')
|
||||
makedepends=('squashfs-tools')
|
||||
makedepends=('rsync' 'squashfs-tools')
|
||||
depends=('libluajit-5.1-2' 'libluajit-5.1-common' 'libmsgpackc2' 'libtermkey1' 'libunibilium4' 'libvterm0' 'lua-luv')
|
||||
conflicts=('neovim' 'neovim-git' 'neovim-runtime')
|
||||
extensions=('zipman')
|
||||
@@ -30,25 +30,11 @@ sha256sums=('6a021e9465fe3d3375e28c3e94c1c2c4f7d1a5a67e4a78cf52d18d77b1471390'
|
||||
prepare() {
|
||||
rm -rf squashfs-root/
|
||||
chmod +x "./nvim-${pkgver}.appimage"
|
||||
"./nvim-${pkgver}.appimage" --appimage-extract
|
||||
"./nvim-${pkgver}.appimage" --appimage-extract > /dev/null
|
||||
}
|
||||
|
||||
package() {
|
||||
echo "Copying application binary"
|
||||
install -Dm 755 squashfs-root/usr/bin/nvim -t "${pkgdir}/usr/bin/"
|
||||
|
||||
echo "Copying libraries"
|
||||
install -Dm 644 squashfs-root/usr/lib/nvim/parser/c.so -t "${pkgdir}/usr/lib/nvim/parser/"
|
||||
|
||||
echo "Copying application files"
|
||||
mkdir -p "${pkgdir}/usr/share/"
|
||||
cp -r squashfs-root/usr/share/applications "${pkgdir}/usr/share/applications"
|
||||
cp -r squashfs-root/usr/share/icons "${pkgdir}/usr/share/icons"
|
||||
cp -r squashfs-root/usr/share/locale "${pkgdir}/usr/share/locale"
|
||||
cp -r squashfs-root/usr/share/man "${pkgdir}/usr/share/man"
|
||||
cp -r squashfs-root/usr/share/nvim "${pkgdir}/usr/share/nvim"
|
||||
|
||||
echo "Copying scripts for update-alternatives symbolic links"
|
||||
rsync -a "squashfs-root/usr/" "${pkgdir}/usr/"
|
||||
mkdir -p "${pkgdir}/usr/libexec/neovim"
|
||||
install -Dm 755 ex "${pkgdir}/usr/libexec/neovim/"
|
||||
install -Dm 755 view "${pkgdir}/usr/libexec/neovim/"
|
||||
|
||||
Reference in New Issue
Block a user