summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD28
1 files changed, 28 insertions, 0 deletions
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}"
+}