updated on Wed Jan 25 08:34:36 UTC 2012
[aur-mirror.git] / zsh-completion-subtle / PKGBUILD
blob14cc4fd5d5386a0b1281ec23149043027fdb531c
1 # Maintainer: Kyrylo Silin <kyrylosilin@gmail.com>
3 pkgname=zsh-completion-subtle
4 pkgver=0.0.2
5 pkgrel=1
6 pkgdesc="Z Shell completion scripts for Subtle WM and its tools."
7 url="https://www.github.com/kyrylo/zsh-completion-subtle"
8 arch=('any')
9 license=('MIT License')
10 depends=('zsh')
11 makedepends=('git')
13 _gitroot="git://www.github.com/kyrylo/zsh-completion-subtle.git"
14 _gitrepo="zsh-completion-subtle"
16 build()
18   cd "$srcdir"
19   msg "Connecting to Git server..."
21   if [ -d $_gitrepo ]; then
22     cd $_gitrepo
23     git pull origin || return 1
24     msg "The local files are updated."
25   else
26     git clone --depth=1 $_gitroot $_gitrepo || return 1
27   fi
29   msg "Git checkout done or server timeout."
32 package()
34   cd "$srcdir/$_gitrepo"
35   install -m0755 -d "$pkgdir/usr/share/zsh/site-functions"
36   install -m0644 _* "$pkgdir/usr/share/zsh/site-functions"