Switch to extracting the AppImage, since NeoVim no longer officially supports other build-artifacts

They are phasing them out
This commit is contained in:
Jonathan Apodaca 2023-04-08 07:58:31 -06:00
parent 79c02cda09
commit e9017b20b5
3 changed files with 21 additions and 28 deletions

View File

@ -4,7 +4,7 @@ postinst = neovim-bin.postinst
prerm = neovim-bin.prerm 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 pkgrel = 2
pkgver = 0.9.0 pkgver = 0.9.0
url = https://neovim.io url = https://neovim.io
arch = amd64 arch = amd64
@ -19,21 +19,15 @@ depends = libunibilium4
depends = libvterm0 depends = libvterm0
depends = lua-luv depends = lua-luv
license = custom:neovim license = custom:neovim
optdepends = python-neovim: for Python 3 plugin support (see :help python) makedepends = squashfs-tools
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)
provides = neovim provides = neovim
provides = neovim-runtime provides = neovim-runtime
source = nvim-linux64-0.9.0.tar.gz::https://github.com/neovim/neovim/releases/download/v0.9.0/nvim-linux64.tar.gz source = nvim-0.9.0.appimage::https://github.com/neovim/neovim/releases/download/v0.9.0/nvim.appimage
source = ex source = ex
source = view source = view
source = vimdiff source = vimdiff
sha256sums = fa93f06bec111fea6f316f186b96e19ba289a2dca2d0731e23597398b7397c8f sha256sums = 0e1e6d53c6c8055de23bdb33f60bb64af0baf11390669c1b40ecbbf2c7a34547
sha256sums = 5d3178628afc39f0318638cad19e9ad06ada89926dfb263e93ab35cc8f60e911 sha256sums = 5d3178628afc39f0318638cad19e9ad06ada89926dfb263e93ab35cc8f60e911
sha256sums = 3cb963a264b6cf45749627408b5a62c6945e5e426b595bb5e6a388194c2c1990 sha256sums = 3cb963a264b6cf45749627408b5a62c6945e5e426b595bb5e6a388194c2c1990
sha256sums = 1d3123b9d97a4889696ab72db558041b5cca8e26ff51ae557f7842242a7d4ed1 sha256sums = 1d3123b9d97a4889696ab72db558041b5cca8e26ff51ae557f7842242a7d4ed1
optdepends = python-neovim: for Python 3 plugin support (see :help python) makedepends = squashfs-tools
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)

1
.gitignore vendored
View File

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

View File

@ -1,53 +1,51 @@
# Maintainer: canony <canony@protonmail.ch> # Maintainer: Jonathan Apodaca <jrapodaca@gmail.com>
# Contributor: Sven-Hendrik Haase <svenstaro@gmail.com> # Contributor: Sven-Hendrik Haase <svenstaro@gmail.com>
# Contributor: Florian Walch <florian+aur@fwalch.com> # Contributor: Florian Walch <florian+aur@fwalch.com>
# Contributor: Florian Hahn <flo@fhahn.com> # Contributor: Florian Hahn <flo@fhahn.com>
pkgname=neovim-bin pkgname=neovim-bin
pkgver=0.9.0 pkgver=0.9.0
pkgrel=1 pkgrel=2
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=('amd64')
url='https://neovim.io' url='https://neovim.io'
license=('custom:neovim') license=('custom:neovim')
provides=('neovim' 'neovim-runtime') provides=('neovim' 'neovim-runtime')
makedepends=('squashfs-tools')
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)'
'xclip: for clipboard support on X11 (or xsel) (see :help clipboard)'
'xsel: for clipboard support on X11 (or xclip) (see :help clipboard)'
'wl-clipboard: for clipboard support on wayland (see :help clipboard)')
conflicts=('neovim' 'neovim-git' 'neovim-runtime') conflicts=('neovim' 'neovim-git' 'neovim-runtime')
source=( source=(
"nvim-linux64-${pkgver}.tar.gz::https://github.com/neovim/neovim/releases/download/v${pkgver}/nvim-linux64.tar.gz" "nvim-${pkgver}.appimage::https://github.com/neovim/neovim/releases/download/v${pkgver}/nvim.appimage"
"ex" "ex"
"view" "view"
"vimdiff") "vimdiff")
postinst="${pkgname}.postinst" postinst="${pkgname}.postinst"
prerm="${pkgname}.prerm" prerm="${pkgname}.prerm"
sha256sums=('fa93f06bec111fea6f316f186b96e19ba289a2dca2d0731e23597398b7397c8f' sha256sums=('0e1e6d53c6c8055de23bdb33f60bb64af0baf11390669c1b40ecbbf2c7a34547'
'5d3178628afc39f0318638cad19e9ad06ada89926dfb263e93ab35cc8f60e911' '5d3178628afc39f0318638cad19e9ad06ada89926dfb263e93ab35cc8f60e911'
'3cb963a264b6cf45749627408b5a62c6945e5e426b595bb5e6a388194c2c1990' '3cb963a264b6cf45749627408b5a62c6945e5e426b595bb5e6a388194c2c1990'
'1d3123b9d97a4889696ab72db558041b5cca8e26ff51ae557f7842242a7d4ed1') '1d3123b9d97a4889696ab72db558041b5cca8e26ff51ae557f7842242a7d4ed1')
prepare() { prepare() {
rm -rf nvim-linux64/ rm -rf squashfs-root/
tar -xf "nvim-linux64-${pkgver}.tar.gz" chmod +x "./nvim-${pkgver}.appimage"
"./nvim-${pkgver}.appimage" --appimage-extract
} }
package() { package() {
echo "Copying application binary" echo "Copying application binary"
install -Dm 755 nvim-linux64/bin/nvim -t "${pkgdir}/usr/bin/" install -Dm 755 squashfs-root/usr/bin/nvim -t "${pkgdir}/usr/bin/"
echo "Copying libraries" echo "Copying libraries"
install -Dm 644 nvim-linux64/lib/nvim/parser/c.so -t "${pkgdir}/usr/lib/nvim/parser/" install -Dm 644 squashfs-root/usr/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 squashfs-root/usr/share/applications "${pkgdir}/usr/share/applications"
cp -r nvim-linux64/share/icons "${pkgdir}/usr/share/icons" cp -r squashfs-root/usr/share/icons "${pkgdir}/usr/share/icons"
cp -r nvim-linux64/share/locale "${pkgdir}/usr/share/locale" cp -r squashfs-root/usr/share/locale "${pkgdir}/usr/share/locale"
cp -r nvim-linux64/share/man "${pkgdir}/usr/share/man" cp -r squashfs-root/usr/man "${pkgdir}/usr/share/man"
cp -r nvim-linux64/share/nvim "${pkgdir}/usr/share/nvim" cp -r squashfs-root/usr/share/nvim "${pkgdir}/usr/share/nvim"
echo "Copying scripts for update-alternatives symbolic links" echo "Copying scripts for update-alternatives symbolic links"
mkdir -p "${pkgdir}/usr/libexec/neovim" mkdir -p "${pkgdir}/usr/libexec/neovim"