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

_pkgname=vim-markdown
pkgname=vim-markdown-git
pkgver=r504.8e5d86f
pkgrel=2
pkgdesc="Markdown Vim Mode"
arch=('any')
url="https://github.com/plasticboy/vim-markdown"
license=('MIT')
depends=('vim' 'vim-tabular')
makedepends=('git')
conflicts=('vim-markdown')
provides=('vim-markdown')
source=("git+https://github.com/plasticboy/${_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}"
}