summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: dc4d7fcb973a2db81cb48fb975a3e3a821f269dd (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:  Polichronucci <nick at discloud dot eu>

pkgname=vim-neomutt-git
pkgver=r9.b224ff5
pkgrel=1
pkgdesc='Vim syntax for neomutt.'
arch=('any')
url='https://github.com/neomutt/neomutt.vim'
license=('GPL2')
depends=('neomutt' 'vim')
makedepends=('git')
source=("${pkgname}"::"git+$url")
md5sums=('SKIP')

pkgver() {
  cd "$srcdir/${pkgname}"
  printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

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

  local _vimfiles="$pkgdir/usr/share/vim/vimfiles"
  for dir in */
  do
    for file in ${dir}*
    do
      install -Dm644 "${file}" "$_vimfiles/${file}"
    done
  done
}