diff options
author | zenekron | 2020-07-16 08:29:36 +0200 |
---|---|---|
committer | zenekron | 2020-07-16 08:38:09 +0200 |
commit | 8a87391896da6ba89265967501aa6dd7c512cd82 (patch) | |
tree | 58b68b4d1e069a1c748a526e84f96d698ad9e422 | |
parent | 2743cfa72e7569c57cb09efdacf82becc96cd45a (diff) | |
download | aur-neovim-plug-git.tar.gz |
Overhaul PKGBUILD without changing functionality
1) git is now a make dependency
While this won't affect most users, it might prevent issues in weird
cases where the user is most likely using an AUR wrapper but has
uninstalled git.
2) pkgver is generated using the closest git tag
QoL change that makes it easier to understand what vim-plug version
is installed.
-rw-r--r-- | .SRCINFO | 7 | ||||
-rw-r--r-- | PKGBUILD | 26 |
2 files changed, 15 insertions, 18 deletions
@@ -1,14 +1,15 @@ pkgbase = neovim-plug-git - pkgdesc = Minimalist Neovim Plugin Manager - pkgver = r608.e6a775e + pkgdesc = A minimalist Vim plugin manager + pkgver = 0.10.0.r38.c319036 pkgrel = 1 url = https://github.com/junegunn/vim-plug arch = any license = MIT + makedepends = git depends = neovim provides = neovim-plug conflicts = neovim-plug - source = neovim-plug-git::git+https://github.com/junegunn/vim-plug + source = neovim-plug-git::git+https://github.com/junegunn/vim-plug.git md5sums = SKIP pkgname = neovim-plug-git @@ -1,31 +1,27 @@ # Maintainer: zenekron <zenekron@gmail.com> - pkgname=neovim-plug-git -pkgver=r608.e6a775e +pkgver=0.10.0.r38.c319036 pkgrel=1 -pkgdesc="Minimalist Neovim Plugin Manager" +pkgdesc="A minimalist Vim plugin manager" +arch=("any") url="https://github.com/junegunn/vim-plug" license=("MIT") -source=("$pkgname::git+https://github.com/junegunn/vim-plug") -md5sums=("SKIP") -arch=("any") depends=("neovim") -conflicts=("neovim-plug") +makedepends=("git") provides=("neovim-plug") +conflicts=("neovim-plug") +source=("$pkgname::git+https://github.com/junegunn/vim-plug.git") +md5sums=("SKIP") pkgver() { cd "$srcdir/$pkgname" - printf "r%s.%s" \ - "$(git rev-list --count HEAD)" \ - "$(git rev-parse --short HEAD)" + git describe --long --tags | sed 's/\([^-]*-\)g/r\1/;s/-/./g' } package() { cd "$srcdir/$pkgname" - install -Dm 644 "plug.vim" \ - "$pkgdir/usr/share/nvim/runtime/autoload/plug.vim" - install -Dm 644 "LICENSE" \ - "$pkgdir/usr/share/licenses/$pkgname/LICENSE" + install -Dm 644 "plug.vim" "$pkgdir/usr/share/nvim/runtime/autoload/plug.vim" + install -Dm 644 "LICENSE" "$pkgdir/usr/share/licenses/$pkgname/LICENSE" } -# vim: set ts=4 sw=4: +# vim: set tabstop=4 shiftwidth=4 colorcolumn=100 : |