blob: d8cb088e1a80279c8f26a8609c4161c9dbead5e0 (
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
|
# Maintainer: Robin Candau <antiz@archlinux.org>
pkgname=nerdtree-git-plugin-git
_pkgname="${pkgname%-git}"
pkgver=r149.e1fe727
pkgrel=2
pkgdesc="A plugin of NERDTree showing git status"
url="https://github.com/Xuyuanp/nerdtree-git-plugin"
arch=('any')
license=('LicenseRef-WTFPL')
depends=('git' 'vim-nerdtree')
provides=("${_pkgname}")
conflicts=("${_pkgname}")
source=("git+${url}.git"
rollback_git_status-vim.patch)
sha256sums=('SKIP'
'4473fbe1c91e1cf19f7b7362517ae32be7acdb2eb45baa348b7025938b681095')
pkgver() {
cd "${_pkgname}"
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
prepare() {
cd "${_pkgname}"
# Rollback the git_status.vim file to a known working state (rollback to commit db33cfa4d3c066ee9e204f65cf13090b21978001)
# git_status.vim in current HEAD/main is severely broken...
patch -Np1 < "${srcdir}/rollback_git_status-vim.patch"
}
package() {
cd "${_pkgname}"
install -Dm 644 nerdtree_plugin/git_status.vim "${pkgdir}/usr/share/vim/vimfiles/plugin/git_status.vim"
install -Dm 644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
install -Dm 644 README.md "${pkgdir}/usr/share/doc/${_pkgname}/README.md"
}
|