updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / zcm-git / PKGBUILD
blobc5e79823914b6b55e09c2fd01c3381af2bb4ec84
1 # Contributor: Guten <ywzhaifei@gmail.com>
3 pkgname=zcm-git
4 pkgver=20110804  # svn auto added
5 pkgrel=1
6 pkgdesc="zcm is a ZSH Configuration Manager"
7 arch=("i686" "x86_64")
8 url="http://zcm.heroku.com"
9 license=("MIT-LICENSE")
10 groups=()
11 depends=()
12 makedepends=()
13 optdepends=()
14 provides=()
15 conflicts=()
16 replaces=()
17 backup=()
18 options=()
19 install=
20 changelog=
21 source=()
22 md5sums=() 
24 _gitroot="git://github.com/zcm/zcm.git"
25 _gitname="zcm"
27 build() {
28   cd ${srcdir}
29   msg "Connecting to GIT server...."
31   if [ -d ${_gitname}/.git ] ; then
32     cd ${_gitname}
34     # Change remote url to anongit
35     if [ -z $( git branch -v | grep anongit ) ] ; then
36         git remote set-url origin ${_gitroot}
37     fi
38     
39     git pull origin
40     msg "The local files are updated."
41   else
42     git clone ${_gitroot} ${_gitname}
43   fi
44   msg "GIT checkout done or server timeout"
46   # msg "Starting make..."
47         # make
50 package() {
51   cd ${srcdir}/${_gitname}
53   #
54   # install
55   #
56   mkdir -p $pkgdir/usr/bin/
57   cp bin/zcm $pkgdir/usr/bin/
61 # vim:set ts=2 sw=2 et: