summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 57c1793b091db9c2b2c660943b619fc629779a9e (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
34
# Maintainer: Luis Martinez <luis dot martinez at disroot dot org>

pkgname=neovim-sidebar-dev-git
pkgver=r197.b919936
pkgrel=1
pkgdesc="Generic and modular sidebar"
arch=('any')
url="https://github.com/sidebar-nvim/sidebar.nvim"
license=('unknown')
groups=('neovim-plugins')
depends=('neovim')
makedepends=('git')
provides=("${pkgname%-dev-git}")
conflicts=("${pkgname%-dev-git}")
install=sidebar.install
source=("$pkgname::git+$url#branch=dev")
md5sums=('SKIP')

pkgver() {
	cd "$pkgname"
	printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

package() {
	cd "$pkgname"
	install -Dm644 doc/sidebar.txt -t "$pkgdir/usr/share/nvim/runtime/doc/"
	find lua plugin \
		-type f \
		-exec install -Dm644 '{}' "$pkgdir/usr/share/nvim/runtime/{}" \;
	find doc README.md \
		-type f \
		-name '*.md' \
		-exec install -Dm644 -t "$pkgdir/usr/share/doc/$pkgname/" '{}' \+
}