summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 3a8c68a3dd7f10c3551577fb2405540cefb026fd (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
# Maintainer: Amin Vakil <info at aminvakil dot com>

_pkgname=vim-markdown
pkgname=vim-markdown-git
pkgver=r504.8e5d86f
pkgrel=3
pkgdesc="Markdown Vim Mode"
arch=('any')
url="https://github.com/preservim/vim-markdown"
license=('MIT')
depends=('vim-plugin-runtime' 'vim-tabular')
makedepends=('git')
conflicts=('vim-markdown')
provides=('vim-markdown')
groups=('vim-plugins')
source=("git+https://github.com/preservim/${_pkgname}.git")
sha256sums=('SKIP')

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

package() {
  cd "${_pkgname}"
  _installpath="$pkgdir/usr/share/vim/vimfiles"
  install -d "${_installpath}"
  cp -r -t "${_installpath}" after doc ftdetect ftplugin indent registry syntax test
  install -Dm 644 README.md -t "${pkgdir}/usr/share/doc/${_pkgname}"
}