summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 62c28a679145de6818dea1dc87c2aa9f4d09c1cd (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
_pkgname=vim-snakemake
pkgname=$_pkgname-git
pkgver=r18.d0015a0
pkgrel=1
pkgdesc="Vim syntax for Snakemake snakefiles"
arch=('any')
depends=('vim')
makedepends=('git')
groups=('vim-plugins')
url="https://github.com/raivivek/$_pkgname"
license=('MIT')
source=("$_pkgname::git+https://github.com/raivivek/$_pkgname.git")
sha256sums=('SKIP')
provides=("$_pkgname")
conflicts=("$_pkgname")

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

package() {
  cd "$_pkgname"
  find ftdetect ftplugin indent snippets syntax \
		-type f -exec install -Dm644 '{}' \
    "$pkgdir/usr/share/vim/vimfiles/{}" \;
}