1 # Maintainer: Rémy Oudompheng <remy@archlinux.org>
6 pkgdesc="Go bindings for SDL "
8 url="http://github.com/banthar/Go-SDL"
10 depends=('go' 'sdl' 'sdl_image' 'sdl_mixer' 'sdl_ttf')
13 _gitroot="git://github.com/banthar/Go-SDL.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: