1 # Contributor: Guten Ye <ywzhaifei [at] gmail [dot] com>
3 pkgname="gutenutils-git"
4 pkgver=20110712 # svn auto added
6 pkgdesc="my utils in Linux"
8 url="https://github.com/GutenYe/gutenutils"
9 license=("MIT-LICENSE")
22 md5sums=() # generate with 'makepkg -g'
28 # src/ $srcdir # created by makepkg
29 # pkg/ $pkgdir # created by makepkg
31 _gitroot="git://github.com/GutenYe/gutenutils.git"
36 msg "Connecting to GIT server...."
38 if [ -d ${_gitname}/.git ] ; then
41 # Change remote url to anongit
42 if [ -z $( git branch -v | grep anongit ) ] ; then
43 git remote set-url origin ${_gitroot}
47 msg "The local files are updated."
49 git clone ${_gitroot} ${_gitname}
51 msg "GIT checkout done or server timeout"
53 # msg "Starting make..."
58 cd ${srcdir}/${_gitname}
63 mkdir -p $pkgdir/usr/bin
64 cp -r bin/* $pkgdir/usr/bin