updated on Fri Jan 20 00:01:56 UTC 2012
[aur-mirror.git] / zsh-syntax-highlighting-git / PKGBUILD
blob357da997d721f016c21e6b02a1d0caeccd7d6139
1 # Maintainer: mjheagle <mjheagle8@gmail.com>
2 pkgname=zsh-syntax-highlighting-git
3 pkgver=20111203
4 pkgrel=2
5 pkgdesc="Fish shell like syntax highlighting for Zsh"
6 url="https://github.com/zsh-users/zsh-syntax-highlighting"
7 arch=('any')
8 license=('Custom')
9 depends=('zsh>=4.3.9')
10 makedepends=('git')
11 install='zsh-syntax-highlighting.install'
13 _giturl="git://github.com/zsh-users/zsh-syntax-highlighting.git"
14 _gitname="zsh-syntax-highlight"
16 build() {
17     cd "${srcdir}"
18     msg "Connecting to GIT server..."
19     if [ -d ${_gitname} ]; then
20         cd ${_gitname}
21         git pull origin
22     else
23         git clone ${_giturl} ${_gitname} --depth=1 
24     fi
25     msg "GIT checkout done or server timeout"
28 package() {
29     cd "${srcdir}/${_gitname}"
30     mkdir -p "${pkgdir}/usr/share/zsh/plugins/zsh-syntax-highlight"
31     cp -R ./ "${pkgdir}/usr/share/zsh/plugins/zsh-syntax-highlight"
32     cd "${pkgdir}/usr/share/zsh/plugins/zsh-syntax-highlight"
33     rm -R .git