updated on Sat Jan 21 04:00:54 UTC 2012
[aur-mirror.git] / go-gb-git / PKGBUILD
blobc59ec9801b5e9884dee9e6429f1eff7e6f203ccf
1 # Maintainer: Neal van Veen <nealvanveen at gmail>
2 pkgname=go-gb-git
3 pkgver=20111224
4 pkgrel=1
5 pkgdesc="A(nother) tool to build go projects"
6 arch=('i686' 'x86_64')
7 url="http://code.google.com/p/go-gb"
8 license=('Apache')
9 depends=('go')
10 makedepends=('git')
11 provides=('go-gb')
12 conflicts=('go-gb')
13 source=()
14 md5sums=()
16 _gitroot=git://github.com/skelterjohn/go-gb.git
17 _gitname=go-gb
18 _gittag=go.weekly.2011-12-22
20 build() {
21   cd "$srcdir"
22   msg "Connecting to GIT server...."
24   if [[ -d "$_gitname" ]]; then
25     cd "$_gitname" && git pull origin
26     msg "The local files are updated."
27   else
28     git clone "$_gitroot" "$_gitname"
29   fi
31   msg "GIT checkout done or server timeout"
32   msg "Starting build..."
34   rm -rf "$srcdir/$_gitname-build"
35   git clone "$srcdir/$_gitname" "$srcdir/$_gitname-build"
36   cd "$srcdir/$_gitname-build/gb"
38   git checkout -q $_gittag
39   make
42 package() {
43   cd "$srcdir/$_gitname-build/gb"
44   install -d -m755 "${pkgdir}/usr/bin/"
45   install -m755 gb "${pkgdir}/usr/bin/go-gb"
48 # vim:set ts=2 sw=2 et: