summarylogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.SRCINFO17
-rw-r--r--PKGBUILD28
-rw-r--r--vimdoc.install12
3 files changed, 57 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..7e7ac57dc8b
--- /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 00000000000..5825f5adfc1
--- /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 00000000000..81700b023f8
--- /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
+}