@caleb, yep, my fault. I forgot about g flag.
Search Criteria
Package Details: neovim-nightly-bin 0.9.0+dev+1115+g446c353a5-1
Package Actions
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)
- hicolor-icon-theme (hicolor-icon-theme-gitAUR)
- python-neovim (python-pynvim-gitAUR, python-pynvim) (optional) – for Python 3 plugin support (see :help provider-python)
- ruby-neovimAUR (optional) – for Ruby plugin support (see :help provider-ruby)
- wl-clipboard (wl-clipboard-gitAUR, wl-clipboard-rsAUR, wl-clipboard-rs-gitAUR) (optional) – for clipboard support on wayland (see :help clipboard)
- xclip (wl-clipboard-x11AUR, xclip-gitAUR) (optional) – for X11 clipboard support (or xsel) (see :help provider-clipboard)
- xsel (xsel-gitAUR, wl-clipboard-x11AUR) (optional) – for X11 clipboard support (or xclip) (see :help provider-clipboard)
Required by (430)
- bettervim (requires neovim)
- candyvim-git (requires neovim)
- cmp-buffer (requires neovim)
- cmp-nvim-lsp (requires neovim)
- completion-nvim (requires neovim)
- deoplete (requires neovim) (optional)
- deoplete-git (requires neovim) (optional)
- eovim (requires neovim)
- fvim (requires neovim)
- fvim-bin (requires neovim)
- glrnvim (requires neovim)
- gnvim (requires neovim)
- gnvim-git (requires neovim)
- goneovim-bin (requires neovim)
- goneovim-git (requires neovim)
- gonvim (requires neovim)
- grg-git (requires neovim) (optional)
- hyprforest-installer-bin (requires neovim) (optional)
- lua51-prompt-style (requires neovim) (optional)
- lunarvim-git (requires neovim)
- Show 410 more...
Sources (4)
dchusovitin commented on 2021-06-15 02:13 (UTC) (edited on 2021-06-15 02:15 (UTC) by dchusovitin)
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.
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.