updated on Sat Jan 21 04:00:54 UTC 2012
[aur-mirror.git] / oh-my-zsh-extra-git / PKGBUILD
blob6e9a16dbde6608c9ae6dcbc2f9ed5866fd20eb18
1 # Maintainer: James McGlashan <james[at]jamesm[dot]com[dot]au>
3 pkgname=oh-my-zsh-extra-git
4 pkgver=20111130
5 pkgrel=1
6 pkgdesc="40+ plugins for omz on the aur."
7 arch=('any')
8 url="http://github.com/jamesm-sitegen/oh-my-zsh-extra"
9 license=('MIT')
10 depends=('oh-my-zsh-git')
11 makedepends=('git')
13 # Cleaner _git format
14 _gitdomain='github.com'
15 _gituser='archeydevil'
16 _gitname='oh-my-zsh-extra'
17 _gitroot="https://$_gitdomain/$_gituser/$_gitname.git"
19 build() {
20   cd "$srcdir"
21   msg "Connecting to GIT server.... [$_gitdomain:$_gituser:$_gitname]"
22   if [ -d $_gitname ] ; then
23     cd $_gitname && git pull origin
24     msg "The local files are updated."
25   else
26     git clone --depth=1 $_gitroot $_gitname
27   fi
28   msg "GIT checkout done or server timeout"
31 package() {
32   install -d "$pkgdir/usr/share/oh-my-zsh"
33   cp -r oh-my-zsh-extra/* "$pkgdir/usr/share/oh-my-zsh"
36 # vim:set ts=2 sw=2 et: