From c6022ff2cd9d5c4af5e89191150beec0e466288c Mon Sep 17 00:00:00 2001 From: Cedric Girard Date: Fri, 21 Aug 2015 13:55:44 +0200 Subject: [PATCH] first package version --- .SRCINFO | 15 +++++++++++++++ PKGBUILD | 22 ++++++++++++++++++++++ vimdoc.install | 14 ++++++++++++++ 3 files changed, 51 insertions(+) create mode 100644 .SRCINFO create mode 100644 PKGBUILD create mode 100644 vimdoc.install diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 0000000..39e025d --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,15 @@ +pkgbase = vim-indent-guides + pkgdesc = Visually display indent levels in Vim + pkgver = 1.6 + pkgrel = 1 + url = http://www.vim.org/scripts/script.php?script_id=3361 + install = vimdoc.install + arch = any + groups = vim-plugins + license = MIT + depends = vim + source = https://github.com/nathanaelkane/vim-indent-guides/archive/1.6.tar.gz + sha256sums = 11c401fb1b23e42536238011c28027e1e2807b210686d94f5f445638bbc075fe + +pkgname = vim-indent-guides + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 0000000..4a6597a --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,22 @@ +# Maintainer: Cedric Girard +# Contributor: Olivier Mehani + +pkgname=vim-indent-guides +pkgver=1.6 +pkgrel=1 +pkgdesc='Visually display indent levels in Vim' +arch=(any) +url='http://www.vim.org/scripts/script.php?script_id=3361' +license=(MIT) +groups=('vim-plugins') +depends=(vim) +install=vimdoc.install +source=("https://github.com/nathanaelkane/vim-indent-guides/archive/${pkgver}.tar.gz") +sha256sums=('11c401fb1b23e42536238011c28027e1e2807b210686d94f5f445638bbc075fe') + +package() { + cd "$srcdir/${pkgname}-${pkgver}" + local installpath="$pkgdir/usr/share/vim/vimfiles" + mkdir -p "$installpath" + cp -r autoload plugin doc "$installpath" +} diff --git a/vimdoc.install b/vimdoc.install new file mode 100644 index 0000000..9e4221a --- /dev/null +++ b/vimdoc.install @@ -0,0 +1,14 @@ +post_install() { + echo -n "Updating Vim help tags..." + /usr/bin/vim --noplugin -u NONE -U NONE \ + --cmd ":helptags /usr/share/vim/vimfiles/doc" --cmd ":q" > /dev/null 2>&1 + echo "done." +} + +post_upgrade() { + post_install $1 +} + +post_remove() { + post_install +}