updated on Thu Jan 19 16:10:29 UTC 2012
[aur-mirror.git] / vim-slim-git / PKGBUILD
blobd8909c98d5ec1b50fd2e5196cadca0594d60c34a
1 # Maintainer: Leif Warner <abimelech@gmail.com>
2 pkgname=vim-slim-git
3 pkgver=20110831
4 pkgrel=1
5 pkgdesc="Slim template language syntax support for Vim."
6 arch=('any')
7 url="https://github.com/bbommarito/vim-slim"
8 license=('MIT')
9 depends=('vim')
10 optdepends=('vim-coffeescript')
11 makedepends=('git')
12 provides=('vim-slim')
13 conflicts=('vim-slim')
15 _gitroot="https://github.com/bbommarito/vim-slim.git"
16 _gitname="vim-slim"
18 build() {
19   cd "$srcdir"
20   msg "Connecting to GIT server...."
22   if [ -d $_gitname ] ; then
23     cd $_gitname && git pull origin
24     msg "The local files are updated."
25   else
26     git clone $_gitroot $_gitname
27   fi
29   msg "GIT checkout done or server timeout"
30   msg "Starting make..."
32   rm -rf "$srcdir/$_gitname-build"
33   git clone "$srcdir/$_gitname" "$srcdir/$_gitname-build"
37 package() {
38   cd "$srcdir/$_gitname-build"
40   install -D -m644 syntax/slim.vim "${pkgdir}/usr/share/vim/vimfiles/syntax/slim.vim"
41   install -D -m644 ftdetect/slim.vim "${pkgdir}/usr/share/vim/vimfiles/ftdetect/slim.vim"
42