blob: 882b9682aed9ee6b58a1d0fc7baf74b312d0ec23 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
|
# Maintainer: Luis Martinez <luis dot martinez at disroot dot org>
pkgname=neovim-neogen-git
pkgver=r161.19a222a
pkgrel=1
pkgdesc="Annotation generator for multiple languages and conventions"
arch=('any')
url="https://github.com/danymat/neogen"
license=('GPL3')
groups=('neovim-plugins')
depends=('neovim' 'neovim-tree-sitter')
makedepends=('git')
provides=("${pkgname%-git}")
conflicts=("${pkgname%-git}")
install=neogen.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 lua \
-type f \
-exec install -Dm644 '{}' "$pkgdir/usr/share/nvim/runtime/{}" \;
# install -Dm644 README.md -t "$pkgdir/usr/share/doc/$pkgname/"
find docs README.md \
-type f \
-exec install -Dm644 -t "$pkgdir/usr/share/doc/$pkgname/" '{}' \+
}
|