summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: ded808edcd97742229ecf93dc71d3750bc389208 (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
35
36
37
38
39
40
41
42
43
44
45
# Maintainer: Luis Martinez <luis dot martinez at disroot dot org>

## GPG keys:
## https://github.com/conni2461.gpg
## https://github.com/web-flow.gpg

pkgname=neovim-telescope-git
pkgver=0.1.0.r158.g6d3fbffe
pkgrel=1
pkgdesc="Extensible fuzzy finder for lists"
arch=('any')
url="https://github.com/nvim-telescope/telescope.nvim"
license=('MIT')
groups=('neovim-plugins')
depends=('neovim' 'neovim-plenary')
optdepends=(
	'bat: for inline previews'
	'fd'
	'ripgrep'
	'neovim-tree-sitter'
	'vim-devicons')
makedepends=('git')
provides=("${pkgname%-git}=${pkgver%.r*}")
conflicts=("${pkgname%-git}")
#source=("$pkgname::git+$url?signed")
source=("$pkgname::git+$url")
sha256sums=('SKIP')
#validpgpkeys=(
#	'5DE3E0509C47EA3CF04A42D34AEE18F83AFDEB23' ## GitHub
#	'9CA54B35171429C416D631D6092CC34920FFEB96' ## Simon Hauser
#)

pkgver() {
	git -C "$pkgname" describe --long --tags | sed 's/-/.r/;s/-/./'
}

package() {
	cd "$pkgname"
	find data doc lua plugin \
		-not \( -path lua/tests -prune \) \
	  -type f \
		-exec install -Dm644 '{}' "$pkgdir/usr/share/nvim/runtime/{}" \;
	install -Dm644 LICENSE -t "$pkgdir/usr/share/licenses/$pkgname/"
	install -Dm644 README.md -t "$pkgdir/usr/share/doc/$pkgname/"
}