1 # Maintainer: Rémy Oudompheng <remy@archlinux.org>
7 pkgdesc="Go package for X11 protocol based on XCB descriptions"
9 url="http://code.google.com/p/x-go-binding"
12 makedepends=('mercurial' 'python2' 'xcb-proto')
16 md5sums=('0cca2741e62b642aef9175db471c9262')
18 _hgroot="https://code.google.com/p/x-go-binding/"
19 _hgrepo="x-go-binding"
23 msg "Connecting to Mercurial server...."
25 if [ -d $_hgrepo ] ; then
28 msg "The local files are updated."
30 hg clone $_hgroot $_hgrepo
33 msg "Mercurial checkout done or server timeout"
34 msg "Starting make..."
36 rm -rf "$srcdir/$_hgrepo-build"
37 cp -r "$srcdir/$_hgrepo" "$srcdir/$_hgrepo-build"
38 cd "$srcdir/$_hgrepo-build"
40 source /etc/profile.d/go.sh
42 cp ${srcdir}/Makefile .
47 cd "$srcdir/$_hgrepo-build"
48 source /etc/profile.d/go.sh
49 mkdir -p ${pkgdir}/${GOROOT}/src/pkg/${_goname}
51 cp -Rv ${srcdir}/${_hgrepo}/* ${pkgdir}/${GOROOT}/src/pkg/${_goname}
54 cp -v ${GOROOT}/src/Make.* ${pkgdir}/${GOROOT}/src/
55 GOROOT=${pkgdir}/${GOROOT} gomake install
56 rm -f ${pkgdir}/${GOROOT}/src/Make.*
59 # vim: set ts=2 sw=2 et: