summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 03f58e50fbd48917fab266bab6acd774850d25fd (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: Fabio Zanini <fabio.zanini _at_ tuebingen.mpg.de>
pkgname=vim-biosyntax-git
pkgver=1518543961
pkgrel=2
pkgdesc="Syntax Highlighting for Computational Biology, vim plugin"
arch=('any')
license=('GPL3')
groups=()
depends=('vim')
makedepends=('git')

source=("biosyntax-vim::git+https://github.com/bioSyntax/bioSyntax-vim.git" "vim-biosyntax.install")
md5sums=('SKIP' 'db2324de860f43a5b639d6ec9f1f87bf')

pkgver() {
  cd "$srcdir/biosyntax-vim"
  git log -n1 --pretty=format:%ct
}

# uncomment this section if you prefer to force a dark background
#build() {
#  sed -i 's/normal\tcterm=NONE\tguibg=NONE\tguifg=NONE\tctermbg=NONE/normal\tcterm=NONE\tguibg=\#111111\tguifg=NONE\tctermbg=0/' "$srcdir/biosyntax-vim/colors/bioSyntax.vim"
#}

package() {
  cd "$srcdir/biosyntax-vim"
  install -dm755 "$pkgdir/usr/share/vim/vimfiles"
  find * -maxdepth 0 -type d -exec cp -R -t "$pkgdir/usr/share/vim/vimfiles" '{}' \+
}