1 # Maintainer: Rémy Oudompheng <remy@archlinux.org>
5 pkgdesc="Automatic building tool for Go language"
7 url="http://code.google.com/p/godag/"
10 makedepends=('mercurial')
14 _hgroot="https://code.google.com/p"
19 msg "Connecting to Mercurial server...."
21 if [ -d $_hgrepo ] ; then
24 msg "The local files are updated."
26 hg clone $_hgroot/$_hgrepo ${_hgrepo}
29 msg "Mercurial checkout done or server timeout"
30 msg "Starting make..."
32 rm -rf "$srcdir/$_hgrepo-build"
33 cp -r "$srcdir/$_hgrepo" "$srcdir/$_hgrepo-build"
34 cd "$srcdir/$_hgrepo-build"
36 source /etc/profile.d/go.sh
37 if [[ "$CARCH" == "i686" ]]; then
46 cd "$srcdir/$_hgrepo-build"
47 install -D -m 755 gd ${pkgdir}/usr/bin/gd
48 install -D -m 755 util/gd-completion.sh ${pkgdir}/etc/bash_completion.d/gd
49 install -D -m 755 util/gdmk-completion.sh ${pkgdir}/etc/bash_completion.d/gdmk
50 install -D -m 644 util/gd.1 ${pkgdir}/usr/share/man/man1/gd.1
51 ln -sf gd.1 ${pkgdir}/usr/share/man/man1/godag.1