diff options
author | Sven-Hendrik Haase | 2020-07-14 01:26:48 +0200 |
---|---|---|
committer | Sven-Hendrik Haase | 2020-07-14 01:26:48 +0200 |
commit | f96c297f84d4ab033c66553bac9a6e3ce5557d0e (patch) | |
tree | bfba13477d3a07f1b86d7991fe0ad2bf297cb7aa | |
download | aur-f96c297f84d4ab033c66553bac9a6e3ce5557d0e.tar.gz |
Moved from [community]
-rw-r--r-- | .SRCINFO | 15 | ||||
-rw-r--r-- | PKGBUILD | 27 | ||||
-rw-r--r-- | vimdoc.install | 14 |
3 files changed, 56 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..6d0b4267cb61 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,15 @@ +pkgbase = vim-omnicppcomplete + pkgdesc = vim c++ completion omnifunc with a ctags database + pkgver = 0.4.1 + pkgrel = 10 + url = http://www.vim.org/scripts/script.php?script_id=1520 + arch = any + groups = vim-plugins + license = unknown + depends = vim + depends = ctags + source = omnicppcomplete.zip::https://www.vim.org/scripts/download_script.php?src_id=7722 + md5sums = 0978a565f95d8980a0035133144db639 + +pkgname = vim-omnicppcomplete + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..fa7abc0a5a86 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,27 @@ +# Contributor: Aaron Griffin <aaron@archlinux.org> +# Maintainer: Daniel J Griffiths <ghost1227@archlinux.us> + +pkgname=vim-omnicppcomplete +#I know the next version will be 0.5 just to break our crap +pkgver=0.4.1 +_scriptid=7722 +pkgrel=10 +pkgdesc="vim c++ completion omnifunc with a ctags database" +arch=('any') +url="http://www.vim.org/scripts/script.php?script_id=1520" +license=('unknown') +depends=('vim' 'ctags') +groups=('vim-plugins') +source=(omnicppcomplete.zip::https://www.vim.org/scripts/download_script.php?src_id=${_scriptid}) +md5sums=('0978a565f95d8980a0035133144db639') + +package() { + cd "${srcdir}" + installpath="${pkgdir}/usr/share/vim/vimfiles" + + mkdir -p ${installpath} + cp -r doc after autoload ${installpath} + + #just in case... make sure it's all 644 + find ${installpath} -type f -exec chmod 644 {} \; +} diff --git a/vimdoc.install b/vimdoc.install new file mode 100644 index 000000000000..4bf6316dd78c --- /dev/null +++ b/vimdoc.install @@ -0,0 +1,14 @@ +post_install() { + echo -n "Updating vim help tags..." + /usr/bin/vim --noplugins -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 +} |