summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 91f9124a20aaee461b430f969fc6a0082c6ca8ca (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
29
30
31
32
33
34
35
36
# Maintainer: John Jenkins <twodopeshaggy@gmail.com>

pkgname=vim-better-indent-support-for-php-with-html-git
pkgver=20130518
pkgrel=1
pkgdesc="Vim indent script for PHP"
arch=('any')
depends=('vim')
makedepends=('git')
groups=('vim-plugins')
conflicts=('vim-php-indent-git')
url="https://github.com/captbaritone/better-indent-support-for-php-with-html"
license=('custom:vim')
source=(${pkgname%-git}::git+https://github.com/captbaritone/better-indent-support-for-php-with-html)
sha256sums=('SKIP')
provides=('vim-better-indent-support-for-php-with-html')
conflicts=('vim-better-indent-support-for-php-with-html')


pkgver() {
  cd ${pkgname%-git}
  git log -1 --format="%cd" --date=short | sed "s|-||g"
}

package() {
  cd $srcdir/vim-better-indent-support-for-php-with-html/

  mkdir -p $pkgdir/usr/share/doc/$pkgname
  install -Dm 644 README.md "$pkgdir/usr/share/doc/$pkgname/readme.md"
 
  cd $srcdir/vim-better-indent-support-for-php-with-html/indent/
  mkdir -p $pkgdir/usr/share/vim/vimfiles/indent/
  install -Dm 644 php.vim "$pkgdir/usr/share/vim/vimfiles/indent/"


}