summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 23eaef7e409cfd4ccb71c5835a0f004b3a74143c (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
_name="sneak"
_reponame="vim-${_name}"
pkgname="${_reponame}-git"
pkgver=r293.5cd2642
pkgrel=1
pkgdesc="VIM plugin for jumping to a location specified by two characters"
arch=('any')
url="http://www.vim.org/scripts/script.php?script_id=4809"
license=('MIT')
depends=('vim')
makedepends=('git')
source=("git+https://github.com/justinmk/${_reponame}")
md5sums=('SKIP')

pkgver() {
	cd "${srcdir}/${_reponame}"
	( set -o pipefail
		git describe --long 2>/dev/null | sed 's/\([^-]*-g\)/r\1/;s/-/./g' ||
		printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
	)
}

package() {
	cd "${srcdir}/${_reponame}/plugin"
	install -Dm 644 ${_name}.vim "${pkgdir}/usr/share/vim/vim74/plugin/${_name}.vim"
}