diff --git a/.SRCINFO b/.SRCINFO index 2c9611f..15a0133 100644 --- a/.SRCINFO +++ b/.SRCINFO @@ -4,7 +4,7 @@ postinst = neovim-bin.postinst prerm = neovim-bin.prerm pkgbase = neovim-bin pkgdesc = Fork of Vim aiming to improve user experience, plugins, and GUIs -pkgrel = 1 +pkgrel = 2 pkgver = 0.9.0 url = https://neovim.io arch = amd64 @@ -19,21 +19,15 @@ depends = libunibilium4 depends = libvterm0 depends = lua-luv license = custom:neovim -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) +makedepends = squashfs-tools provides = neovim 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 = view source = vimdiff -sha256sums = fa93f06bec111fea6f316f186b96e19ba289a2dca2d0731e23597398b7397c8f +sha256sums = 0e1e6d53c6c8055de23bdb33f60bb64af0baf11390669c1b40ecbbf2c7a34547 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) +makedepends = squashfs-tools diff --git a/.gitignore b/.gitignore index ca9b69f..80ed8b0 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,5 @@ pkg/ src/ +*.appimage *.deb *.tar.gz diff --git a/PKGBUILD b/PKGBUILD index 21fcda2..e5729b2 100644 --- a/PKGBUILD +++ b/PKGBUILD @@ -1,53 +1,51 @@ -# Maintainer: canony +# Maintainer: Jonathan Apodaca # Contributor: Sven-Hendrik Haase # Contributor: Florian Walch # Contributor: Florian Hahn pkgname=neovim-bin pkgver=0.9.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') 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') 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" "view" "vimdiff") postinst="${pkgname}.postinst" prerm="${pkgname}.prerm" -sha256sums=('fa93f06bec111fea6f316f186b96e19ba289a2dca2d0731e23597398b7397c8f' +sha256sums=('0e1e6d53c6c8055de23bdb33f60bb64af0baf11390669c1b40ecbbf2c7a34547' '5d3178628afc39f0318638cad19e9ad06ada89926dfb263e93ab35cc8f60e911' '3cb963a264b6cf45749627408b5a62c6945e5e426b595bb5e6a388194c2c1990' '1d3123b9d97a4889696ab72db558041b5cca8e26ff51ae557f7842242a7d4ed1') prepare() { - rm -rf nvim-linux64/ - tar -xf "nvim-linux64-${pkgver}.tar.gz" + rm -rf squashfs-root/ + chmod +x "./nvim-${pkgver}.appimage" + "./nvim-${pkgver}.appimage" --appimage-extract } package() { 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" - 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" mkdir -p "${pkgdir}/usr/share/" - cp -r nvim-linux64/share/applications "${pkgdir}/usr/share/applications" - cp -r nvim-linux64/share/icons "${pkgdir}/usr/share/icons" - cp -r nvim-linux64/share/locale "${pkgdir}/usr/share/locale" - cp -r nvim-linux64/share/man "${pkgdir}/usr/share/man" - cp -r nvim-linux64/share/nvim "${pkgdir}/usr/share/nvim" + 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/man "${pkgdir}/usr/share/man" + cp -r squashfs-root/usr/share/nvim "${pkgdir}/usr/share/nvim" echo "Copying scripts for update-alternatives symbolic links" mkdir -p "${pkgdir}/usr/libexec/neovim"