summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorFabio Zanini2018-06-26 13:41:12 -0700
committerFabio Zanini2018-06-26 13:43:44 -0700
commitc99a1be55963a1e61b61a0e1abc17dc4919aa203 (patch)
treebfe879de9d09fa50b440c8c7959a3e96cb7d0c1c
downloadaur-c99a1be55963a1e61b61a0e1abc17dc4919aa203.tar.gz
Initial commit, dark background by default
-rw-r--r--.SRCINFO15
-rw-r--r--PKGBUILD30
-rw-r--r--vim-biosyntax.install17
3 files changed, 62 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..dc725cd0766
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,15 @@
+pkgbase = vim-biosyntax-git
+ pkgdesc = Syntax Highlighting for Computational Biology, vim plugin
+ pkgver = 1518543961
+ pkgrel = 1
+ arch = any
+ license = GPL3
+ makedepends = git
+ depends = vim
+ source = biosyntax-vim::git+https://github.com/bioSyntax/bioSyntax-vim.git
+ source = vim-biosyntax.install
+ md5sums = SKIP
+ md5sums = db2324de860f43a5b639d6ec9f1f87bf
+
+pkgname = vim-biosyntax-git
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..8094d9a7367
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,30 @@
+# Maintainer: Fabio Zanini <fabio.zanini _at_ tuebingen.mpg.de>
+pkgname=vim-biosyntax-git
+pkgver=1518543961
+pkgrel=1
+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
+}
+
+build() {
+ # Dark background: comment the following line if you prefer the original white background
+ 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" '{}' \+
+}
+
diff --git a/vim-biosyntax.install b/vim-biosyntax.install
new file mode 100644
index 00000000000..6b88851332e
--- /dev/null
+++ b/vim-biosyntax.install
@@ -0,0 +1,17 @@
+update_helptags() {
+ printf "Updating vim help tags..."
+ vim -e -s -c "helptags /usr/share/vim/vimfiles/doc/" -c "quit"
+ printf "done\n"
+}
+
+post_install() {
+ update_helptags
+}
+
+post_upgrade() {
+ update_helptags
+}
+
+post_remove() {
+ update_helptags
+}