updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / z-git / PKGBUILD
bloba2dc6a4c39bad190566bed7eeb3b4dec5614a134
1 # Maintainer: Patrick Palka <patrick@parcs.ath.cx>
2 # Development: http://closure.ath.cx/aur-dev
4 pkgname=z-git
5 pkgver=20111009
6 pkgrel=1
7 pkgdesc="z keeps track of where you've been and provides a convenient \
8 way to jump to directory that you actually use (git version)"
9 url="http://github.com/rupa/z"
10 arch=('any')
11 license=('WTFPL')
12 depends=('sh')
13 makedepends=('git')
15 _gitroot="git://github.com/rupa/z.git"
16 _gitname="z"
18 package() {
19     msg "Connecting to $_gitname repository..."
20     if [ -d "$_gitname" ]; then
21         cd "$_gitname" && git pull origin
22         msg "The local files are updated."
23     else
24         git clone --depth 1 "$_gitroot" && cd "$_gitname"
25     fi
27     install -vDm755 z.sh   "$pkgdir/etc/profile.d/z.sh"
28     install -vDm644 z.1    "$pkgdir/usr/share/man/man1/z.1"