updated on Thu Jan 12 04:00:44 UTC 2012
[aur-mirror.git] / z-jump / PKGBUILD
blob115a0bc8014c0d877d2dbef94e8c32cc8b5412ab
1 # Contributor: Kamil Stachowski <kamil.stachowski@gmail.com>
3 pkgname=z-jump
4 pkgver=20101219
5 pkgrel=1
6 pkgdesc="A continuation of semi clone of autojump"
7 url='http://github.com/rupa/z/tree/master'
8 arch=('i686' 'x86_64')
9 license=('GPL')
10 depends=()
11 makedepends=('git')
12 optdepends=()
13 provides=('z-jump')
14 conflicts=()
15 replaces=()
16 source=()
17 md5sums=()
18 install=z-jump.install
20 _gitname='z'
21 _gitroot='git://github.com/rupa/z.git'
23 build() {
24         msg "Connecting to Git server..."
25         if [ -d "$srcdir/$pkgname" ]; then
26                 cd "$srcdir/$pkgname" && git pull origin || return 1
27         else
28                 git clone "$_gitroot" || return 1
29         fi
30         msg "Git checkout done or server timeout"
33 package() {
34         install -D -m644 "$srcdir/$_gitname/z.sh" "$pkgdir/usr/share/$pkgname/z.sh"
35         install -D -m644 "$srcdir/$_gitname/README" "$pkgdir/usr/share/$pkgname/README"