summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: c7cb00336b8d05bfeab51a17e0b14747fe491a80 (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
39
# Maintainer: Blair Bonnett <blair.bonnett@gmail.com>

pkgname=vim-beancount-git
pkgdesc='Vim support for beancount accounting files'
pkgver=r105.25bcbc7
pkgrel=1
conflicts=('vim-beamcount')
provides=('vim-beamcount')
url='https://github.com/nathangrigg/vim-beancount'
arch=('any')
license=('custom:vim')

depends=('vim-plugin-runtime')
makedepends=('git')

source=(
  'git+https://github.com/nathangrigg/vim-beancount.git'
  'https://www.gnu.org/licenses/vim-license.txt'
)
sha256sums=(
  'SKIP'
  'cfc1edda2b488ecd5b4f1504ea74f5d4a3965d717b5051a51d968ca0b58b3e65'
)

pkgver() {
  cd vim-beancount
  printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short=7 HEAD)"
}

package() {
  cd vim-beancount
  local _installpath="${pkgdir}/usr/share/vim/vimfiles"
  local _component
  for _component in ale_linters/beancount autoload compiler doc ftdetect ftplugin indent syntax; do
    install -Dm644 -t "${_installpath}/${_component}" "${_component}"/*
  done

  install -Dm644 "${srcdir}/vim-license.txt" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}