diff options
author | Amos Onn | 2017-10-23 11:52:34 +0200 |
---|---|---|
committer | Amos Onn | 2017-10-23 11:52:34 +0200 |
commit | eb08c7befbfc6f5717921b9b458210fbf6dd340c (patch) | |
tree | 456d98fbaa9892b8d3612e1b1169d7e88b2cc336 | |
download | aur-eb08c7befbfc6f5717921b9b458210fbf6dd340c.tar.gz |
First. r139.61292de-1.
-rw-r--r-- | .SRCINFO | 17 | ||||
-rw-r--r-- | PKGBUILD | 28 | ||||
-rw-r--r-- | vimdoc.install | 12 |
3 files changed, 57 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..7e7ac57dc8b4 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,17 @@ +# Generated by mksrcinfo v8 +# Mon Oct 23 09:52:21 UTC 2017 +pkgbase = vim-php-git + pkgdesc = Vim plugin for up-to-date php syntax + pkgver = r139.61292de + pkgrel = 1 + url = https://github.com/StanAngeloff/php.vim + install = vimdoc.install + arch = any + groups = vim-plugins + license = none + depends = vim>=7.3 + source = git://github.com/StanAngeloff/php.vim.git + sha256sums = SKIP + +pkgname = vim-php-git + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..5825f5adfc13 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,28 @@ +# Maintainer: Amos Onn <https://aur.archlinux.org/account/amos> + +pkgname=vim-php-git +_gitname=php.vim +pkgver=r139.61292de +pkgrel=1 +pkgdesc='Vim plugin for up-to-date php syntax' +arch=('any') +url='https://github.com/StanAngeloff/php.vim' +license=('none') +depends=('vim>=7.3') +groups=('vim-plugins') +install=vimdoc.install +source=("git://github.com/StanAngeloff/${_gitname}.git") +sha256sums=('SKIP') + +pkgver() { + cd "${srcdir}/${_gitname}" + printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" +} + +package() { + cd "${_gitname}" + local _vimdir="$pkgdir/usr/share/vim/vimfiles" + install -D -m644 {,"$_vimdir/"}"scripts/syntax.ini" + install -D -m644 {,"$_vimdir/"}"scripts/update-vim-syntax.php" + install -D -m644 {,"$_vimdir/"}"syntax/${_gitname}" +} diff --git a/vimdoc.install b/vimdoc.install new file mode 100644 index 000000000000..81700b023f84 --- /dev/null +++ b/vimdoc.install @@ -0,0 +1,12 @@ +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 +} +post_remove() { + post_install +} |