summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: a17f4292141c237399914b5c97861e8929755d91 (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=vim-quick-scope-git
pkgver=2.5.12.r0.g892a233
pkgrel=1
pkgdesc="Always-on highlight for fast left-right movement between words"
arch=('any')
url="https://github.com/unblevable/quick-scope"
license=('MIT')
groups=('vim-plugins')
depends=('vim-plugin-runtime')
makedepends=('git')
provides=("${pkgname%-git}")
conflicts=("${pkgname%-git}")
source=("$pkgname::git+$url?signed")
md5sums=('SKIP')
validpgpkeys=(
	'7E5E9FB83B0871E709F1EBA0896BA880CBBF2C53' ## Bradford Smith
	'E96D8B601BE35D08567314805C112E8DE408E502' ## Oliver Harley
	'8C383C26D7A884B9098E0D5338C7564724AB8709' ## "Bannerets"
)

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

package() {
	cd "$pkgname"
	find autoload doc plugin \
		-type f -exec install -Dm 644 '{}' "$pkgdir/usr/share/vim/vimfiles/{}" \;
	install -Dm 644 LICENSE.md "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
	install -Dm 644 README.md -t "$pkgdir/usr/share/doc/$pkgname/"
}