diff options
author | Luis Martinez | 2022-07-20 16:18:24 -0500 |
---|---|---|
committer | Luis Martinez | 2022-07-20 16:18:24 -0500 |
commit | 24ecb99193a610a7cabbadf29c60532f7d56fcb5 (patch) | |
tree | f3dc860264b41c06eb2a60c444c3f2f927c52e00 /PKGBUILD | |
download | aur-neovim-highlight-colors-git.tar.gz |
initial commit
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..193490c1fa55 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,31 @@ +# Maintainer: Luis Martinez <luis dot martinez at disroot dot org> + +pkgname=neovim-highlight-colors-git +_pkgname="${pkgname%-git}" +pkgver=r26.30be040 +pkgrel=1 +pkgdesc="Highlight color codes in Neovim" +arch=('any') +url="https://github.com/brenoprata10/nvim-highlight-colors" +license=('unknown') +groups=('neovim-plugins') +depends=('neovim') +makedepends=('git') +provides=("$_pkgname") +conflicts=("$_pkgname") +install=highlight-colors.install +source=("$_pkgname::git+$url") +sha256sums=('SKIP') + +pkgver() { + cd "$_pkgname" + ( set -o pipefail + git describe --long 2>/dev/null | sed 's/\([^-]*-g\)/r\1/;s/-/./g' || + printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" ) +} + +package() { + cd "$_pkgname" + find lua plugin -type f -exec install -Dm644 '{}' "$pkgdir/usr/share/nvim/runtime/{}" \; + install -Dm644 README.md -t "$pkgdir/usr/share/doc/$pkgname/" +} |