updated on Fri Jan 20 12:03:34 UTC 2012
[aur-mirror.git] / v-git / PKGBUILD
blobe1186833dde51331e31500bb639fbf64c71be90b
1 # Maintainer: Patrick Palka <patrick@parcs.ath.cx>
2 # Development: http://closure.ath.cx/aur-dev
4 pkgname=v-git
5 pkgver=20111009
6 pkgrel=1
7 pkgdesc="z for vim"
8 url="http://github.com/rupa/v"
9 arch=('any')
10 license=('WTFPL')
11 depends=('sh')
12 makedepends=('git')
14 _gitroot="git://github.com/rupa/v.git"
15 _gitname="v"
17 package() {
18     msg "Connecting to $_gitname repository..."
19     if [ -d "$_gitname" ]; then
20         cd "$_gitname" && git pull origin
21         msg "The local files are updated."
22     else
23         git clone --depth 1 "$_gitroot" && cd "$_gitname"
24     fi
26     install -vDm755 v  "$pkgdir/usr/bin/v"
27     install -vDm644 v.1    "$pkgdir/usr/share/man/man1/v.1"