summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 5825f5adfc132ecdde5d5a6f1a66976ebcf64233 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
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}"
}