diff options
author | Luis Martinez | 2021-10-17 17:34:23 -0500 |
---|---|---|
committer | Luis Martinez | 2021-10-17 17:34:23 -0500 |
commit | 0bee8f1af865cca5fdeee3dd268dcb09217ab4e1 (patch) | |
tree | 620c4e7ab23f381ed37ca55ded513cfa72c42293 /PKGBUILD | |
download | aur-neovim-lsp-status-git.tar.gz |
initial commit
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..13d72e8ee88b --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,30 @@ +# Maintainer: Luis Martinez <luis dot martinez at disroot dot org> + +pkgname=neovim-lsp-status-git +pkgver=r71.e8e5303 +pkgrel=1 +pkgdesc="Utility functions for generating statusline components" +arch=('any') +url="https://github.com/nvim-lua/lsp-status.nvim" +license=('MIT') +groups=('neovim-plugins') +depends=('neovim>=0.5') +optdepends=('nerd-fonts') +makedepends=('git') +provides=("${pkgname%-git}") +conflicts=("${pkgname%-git}") +install=lsp-status.install +source=("$pkgname::git+$url") +md5sums=('SKIP') + +pkgver() { + cd "$pkgname" + printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" +} + +package() { + cd "$pkgname" + find doc lua -type f -exec install -Dm 644 '{}' "$pkgdir/usr/share/nvim/runtime/{}" \; + install -Dm 644 LICENSE -t "$pkgdir/usr/share/licenses/$pkgname/" + install -Dm 644 README.md -t "$pkgdir/usr/share/doc/$pkgname/" +} |