1 # See http://wiki.archlinux.org/index.php/VCS_PKGBUILD_Guidelines
2 # for more information on packaging from GIT sources.
4 # Contributor: Your Name <mainiak at gmail dot com>
8 pkgdesc="Git One File - RCS inspirated git wrapper"
10 url="http://code.koudynet.eu/p/gof/"
13 depends=('bash' 'git')
23 md5sums=() #generate with 'makepkg -g'
25 _gitroot="git://code.koudynet.eu/gof.git "
30 msg "Connecting to GIT server...."
32 if [ -d $_gitname ] ; then
33 cd $_gitname && git pull origin
34 msg "The local files are updated."
36 git clone $_gitroot $_gitname
39 msg "GIT checkout done or server timeout"
40 msg "Starting make..."
42 rm -rf "$srcdir/$_gitname-build"
43 git clone "$srcdir/$_gitname" "$srcdir/$_gitname-build"
44 cd "$srcdir/$_gitname-build"
51 mkdir -p "$pkgdir/usr/bin/"
52 install -m775 "$srcdir/$_gitname-build/gof.sh" "$pkgdir/usr/bin/gof"