summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 2c15d608e74ca31d97f1c856749ca949272fdfc7 (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
# Contributor: David Manouchehri

pkgname=vim-javascript-git
_gitname=$(printf ${pkgname%%-git})
_gitbranch=master
_gitauthor=pangloss
pkgver=0.1.0.r4.ge628cba
pkgrel=1
pkgdesc="Vastly improves Vim's JavaScript indentation"
arch=('any')
url="https://github.com/$_gitauthor/$_gitname"
license=('custom:vim')
depends=('vim')
makedepends=('git')
provides=("$_gitname")
conflicts=("$_gitname")
source=("git://github.com/$_gitauthor/$_gitname.git#branch=$_gitbranch")
sha512sums=('SKIP')

pkgver() {
  cd "$srcdir/$_gitname"
  git describe --long | sed 's/\([^-]*-g\)/r\1/;s/-/./g' | cut -c 2-
}

package() {
  cd "$srcdir/$_gitname"
  install -dm755 "$pkgdir/usr/share/vim/vimfiles"
  find * -maxdepth 0 -type d -exec cp -R -t "$pkgdir/usr/share/vim/vimfiles" '{}' \+
}