summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: dc8a4d2a3871e10c06948e5a7d70119cd6fca708 (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: Yiyao Yu <yuydevel at protonmail dot com>
# Contributor: Sam Stuewe <halosghost at archlinux dot info>
# Contributor: M Rawash <mrawash@gmail.com>
# Contributor: János Illés <ijanos@gmail.com>

_pkgname=vim-fugitive
pkgname="${_pkgname}-git"
pkgver=3.4.115.g142a0dc
pkgrel=2
pkgdesc='Git wrapper so awesome, it should be illegal.'
url='https://github.com/tpope/vim-fugitive'
arch=('any')
license=('custom:vim')
depends=('vim' 'git')
groups=('vim-plugins')
provides=('vim-fugitive')
conflicts=('vim-fugitive')
source=("${_pkgname}::git+${url}.git"
        license.txt)
sha256sums=('SKIP'
            '446c67d93c43addf076fe103a71844c2d875d478f82186436567dd221f2652f3')

pkgver() {
  cd "${srcdir}/${_pkgname}"
  echo "$(git describe --always|cut -d 'v' -f2|sed -e 's/-/./g'|sed -e 's/trashtest\./3.4.1/g')"
}

package() {
  cd "${srcdir}/${_pkgname}"

  find autoload doc ftdetect ftplugin plugin syntax -type f -exec \
    install -Dm 644 '{}' "${pkgdir}/usr/share/vim/vimfiles/{}" \;

  install -Dm 644 "${srcdir}/license.txt" \
    "${pkgdir}/usr/share/licenses/${_pkgname}/license.txt"
}

# vim:set et ts=2 sw=2 tw=79: