diff options
author | Leif Warner | 2015-11-16 20:30:19 -0800 |
---|---|---|
committer | Leif Warner | 2015-11-16 20:30:19 -0800 |
commit | 0417454c7f4acf80f1f44abd7da5dbd38921050a (patch) | |
tree | 8a5804bad164cd1a82c6840b2e3115dd8a4ae774 | |
download | aur-0417454c7f4acf80f1f44abd7da5dbd38921050a.tar.gz |
Initial import v1.3.1.r13.3e012a5
-rw-r--r-- | .SRCINFO | 18 | ||||
-rw-r--r-- | PKGBUILD | 30 | ||||
-rwxr-xr-x | vimdoc.install | 19 |
3 files changed, 67 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..a6a9885175f7 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,18 @@ +pkgbase = vim-ghcmod-git + pkgdesc = ghc-mod powered editing in vim + pkgver = v1.3.1.r13.3e012a5 + pkgrel = 1 + url = https://github.com/eagletmt/ghcmod-vim + install = vimdoc.install + arch = any + license = BSD3 + makedepends = git + depends = vim-vimproc + depends = haskell-ghc-mod + provides = vim-ghcmod + conflicts = vim-ghcmod + source = git://github.com/eagletmt/ghcmod-vim.git + md5sums = SKIP + +pkgname = vim-ghcmod-git + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..969381882505 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,30 @@ +# Maintainer: Leif Warner <abimelech@gmail.com> +_gitname=ghcmod-vim +pkgname=vim-ghcmod-git +pkgver=v1.3.1.r13.3e012a5 +pkgrel=1 +pkgdesc="ghc-mod powered editing in vim" +arch=('any') +url="https://github.com/eagletmt/ghcmod-vim" +license=('BSD3') +depends=('vim-vimproc' 'haskell-ghc-mod') +makedepends=('git') +provides=(vim-ghcmod) +conflicts=(vim-ghcmod) +source=("git://github.com/eagletmt/ghcmod-vim.git") +md5sums=('SKIP') +install=vimdoc.install + +pkgver() { + cd "$srcdir/$_gitname" + printf "%s" "$(git describe --tags --long | sed 's/\([^-]*-\)g/r\1/;s/-/./g')" +} + +package() { + cd "$srcdir/$_gitname" + for f in after/ftplugin/haskell/ghcmod.vim autoload/ghcmod.vim autoload/ghcmod/* doc/* plugin/* ; do + install -Dm644 $f "${pkgdir}/usr/share/vim/vimfiles/$f" + done +} + +# vim:set ts=2 sw=2 et: diff --git a/vimdoc.install b/vimdoc.install new file mode 100755 index 000000000000..5246e5c21134 --- /dev/null +++ b/vimdoc.install @@ -0,0 +1,19 @@ +post_install() { + echo -n "Updating vim help tags..." + /usr/bin/vim --noplugins -u NONE -U NONE \ + --cmd ":helptags /usr/share/vim/doc" --cmd ":q" > /dev/null 2>&1 + echo "done." +} + +post_upgrade() { + post_install $1 +} + +post_remove() { + post_install +} + +op=$1 +shift + +$op $* |