updated on Tue Jan 10 00:10:07 UTC 2012
[aur-mirror.git] / z-zsh / PKGBUILD
blob8acd225bcd86e662dc932b8dd19fb50e10e9e86f
1 # Maintainer: giorgio@gilest.ro
3 pkgname=z-zsh
4 pkgver=20110823
5 pkgrel=1
6 pkgdesc="A zsh port of z. z keeps track of where you've been and provides a convenient \
7 way to jump to directory that you actually use"
8 url="http://github.com/sjl/z-zsh"
9 arch=('any')
10 license=('WTFPL')
11 depends=('zsh')
12 makedepends=('git')
14 _gitroot="git://github.com/sjl/z-zsh.git"
15 _gitname="z-zsh"
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 "$_gitroot" && cd "$_gitname"
24     fi
26     install -vDm755 z.sh  "$pkgdir/etc/profile.d/z.sh"
27     install -vDm644 README "$pkgdir/usr/share/doc/z-zsh/README"