Package Details: neovim-nightly-bin 0.9.0+dev+1115+g446c353a5-1

Git Clone URL: https://aur.archlinux.org/neovim-nightly-bin.git (read-only, click to copy)
Package Base: neovim-nightly-bin
Description: Fork of Vim aiming to improve user experience, plugins, and GUIs (nightly build)
Upstream URL: https://neovim.io
Licenses: custom:neovim
Conflicts: neovim
Provides: neovim, vim-plugin-runtime
Submitter: quebin31
Maintainer: eclairevoyant
Last Packager: eclairevoyant
Votes: 57
Popularity: 2.54
First Submitted: 2020-12-27 19:08 (UTC)
Last Updated: 2023-03-04 16:00 (UTC)

Dependencies (6)

Required by (430)

Sources (4)

Pinned Comments

quebin31 commented on 2021-10-07 15:37 (UTC)

This PKGBUILD uses the current date to refresh the source url, once it's downloaded the pkgver() function should update the version accordingly.

Latest Comments

« First ‹ Previous 1 2 3 4 5 Next › Last »

dchusovitin commented on 2021-06-15 02:13 (UTC) (edited on 2021-06-15 02:15 (UTC) by dchusovitin)

@caleb, yep, my fault. I forgot about g flag.

Atif commented on 2021-06-11 14:18 (UTC)

head and awk is unnecessary. the whole version thing can be done with sed. ./bin/nvim nvim --version | sed -n 's/^NVIM v//;1s/-/+/gp'

alerque commented on 2021-06-10 19:28 (UTC)

@dchusovitin Sorry, but s/v// only replaces the first instance of v, you would need a global flag s/v//g to replace all instances. Hence if you know the string starts with a "v" you don't need to anchor the match, just don't do a global replace.

dchusovitin commented on 2021-06-09 18:34 (UTC)

@quebin31, sorry, but: sed 's/v//' - it will replace all "v" (commit hash may contain "v") sed 's/^v//' - instead of, remove only first "v" char

tafiir commented on 2021-06-07 20:20 (UTC)

I think there is an issue with naming the source file. Since pkgver is run after downloading the sources it might not download the newest version since it finds the current version already downloaded. A better approach would be to use the current date as nightlies are updated every day. Something like this

_filename="$(date -u +%Y%m%d)-${_src}"
source=("$_filename-$_pkgname-$_pkgver.tar.gz::https://github.com/neovim/neovim/releases/download/nightly/nvim-linux64.tar.gz")

dchusovitin commented on 2021-06-07 19:29 (UTC)

New pkgkver() has a bug. Version shouldn't contain "v".

harry commented on 2021-06-02 20:53 (UTC)

yzia2000, or just use the nvim --version

pkgver() {
  cd "${srcdir}/nvim-linux64"
  ./bin/nvim --version | head -1 | awk '{print $2}'
}

yzia2000 commented on 2021-06-01 06:21 (UTC) (edited on 2021-06-01 06:21 (UTC) by yzia2000)

Try:

pkgver() {
  ver=$(curl "https://api.github.com/repos/neovim/neovim/releases" | grep -oP '(?<="NVIM )[^"]+dev[^"]+(?=",)' | sed "s/-/+/g")
  echo $ver
}

tafiir commented on 2021-05-31 23:15 (UTC)

I agree with @dchusovitin, adding a pkgver() function would resolve versioning issues and paru could update the package. AFAIK pushing only pkgver changes on VCS packages is discuraged anyway. This is also how firefox-nightly does it.