1 # Maintainer: Sian Cao <sycao@redflag-linux.com>
6 pkgdesc="Go bindings for OpenGL "
8 url="http://github.com/banthar/Go-OpenGL"
10 depends=('go' 'sdl' 'go-sdl-git')
13 _gitroot="git://github.com/banthar/Go-OpenGL.git"
17 msg 'Connecting to GIT server...'
19 if [[ -d $_gitname ]]; then
20 ( cd $_gitname && git pull origin )
21 msg 'The local files are updated.'
26 msg 'GIT checkout done or server timeout'
27 msg 'Starting make...'
29 rm -rf $_gitname-build
30 git clone $_gitname{,-build}
37 cd ${srcdir}/${_gitname}-build
38 mkdir -p ${pkgdir}/${GOROOT}/src
39 cp -v ${GOROOT}/src/Make.* ${pkgdir}/${GOROOT}/src/
40 GOROOT=${pkgdir}/${GOROOT} gomake install
41 rm -f ${pkgdir}/${GOROOT}/src/Make.*
44 # vim: set ts=2 sw=2 et: