summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 3c61fbd2e9fe8fb3ce0bc3de3d1189de0de6090b (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
# neovim-man

# Maintainer: Andrea Feletto <andrea@andreafeletto.com>

pkgname=neovim-man-git
_pkgname=${pkgname%-*}
pkgver=v0.1.0.r30.gcfdc78f
pkgrel=1
pkgdesc='View man pages in neovim. Grep for the man pages.'
arch=('any')
url='https://github.com/vim-utils/vim-man'
license=('custom')
depends=('neovim')
source=(
	"$_pkgname::git+https://github.com/vim-utils/vim-man"
	'https://raw.githubusercontent.com/vim/vim/master/LICENSE'
)
sha256sums=('SKIP' 'SKIP')

pkgver() {
	cd "$srcdir/$_pkgname"
	git describe --long | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
}

package() {
	runtime="$pkgdir/usr/share/nvim/runtime"
	licenses="$pkgdir/usr/share/licenses"

	cd "$srcdir/$_pkgname"
	install -dv "$runtime"
	cp -R autoload doc ftplugin plugin syntax "$runtime/"
	install -Dvm644 "$srcdir/LICENSE" "$licenses/$_pkgname/LICENSE"
}