blob: bc54a497ed52aec466b8f7f6a7b6ec863f262ab6 (
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
|
# Maintainer: Eli Schwartz <eschwartz@archlinux.org>
# Contributor: Joris Steyn <jorissteyn@gmail.com>
# All my PKGBUILDs are managed at https://github.com/eli-schwartz/pkgbuilds
pkgname=vim-gitgutter-git
pkgver=409.gdcac1f7
pkgrel=1
pkgdesc="A Vim plugin which shows a git diff in the 'gutter'"
arch=('any')
url="https://github.com/airblade/${pkgname%-git}"
license=('MIT')
groups=('vim-plugins')
depends=('vim' 'git')
provides=("${pkgname%-git}")
conflicts=("${pkgname%-git}")
source=("git+${url}.git")
md5sums=('SKIP')
pkgver() {
cd "${srcdir}/${pkgname%-git}"
echo "$(git rev-list --count HEAD).g$(git rev-parse --short HEAD)"
}
package() {
cd "${srcdir}/${pkgname%-git}"
install -dm755 "${pkgdir}/usr/share/vim/vimfiles"
find * -maxdepth 0 -not -name "test" -type d -exec cp -rt "${pkgdir}/usr/share/vim/vimfiles" '{}' \+
install -Dm644 LICENCE "${pkgdir}/usr/share/licenses/${pkgname}/LICENCE"
}
|