1 # See http://wiki.archlinux.org/index.php/VCS_PKGBUILD_Guidelines
2 # for more information on packaging from GIT sources.
4 # Maintainer: Sergey Verhovyh <weerse@gmail.com>
8 pkgdesc="web.go is the simplest way to write web applications in the Go programming language"
10 url="https://github.com/hoisie/web.go"
25 _gitroot=https://github.com/hoisie/web.go.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 build..."
42 rm -rf "$srcdir/$_gitname-build"
43 git clone "$srcdir/$_gitname" "$srcdir/$_gitname-build"
44 cd "$srcdir/$_gitname-build"
50 cd "$srcdir/$_gitname-build"
51 if [ $CARCH = x86_64 ]; then
53 elif [ $CARCH = i686 ]; then
56 msg "Unknown architecture $CARCH"
59 make TARGDIR="$pkgdir"/usr/lib/go/pkg/$go_arch install
62 # vim:set ts=2 sw=2 et: