1 # See http://wiki.archlinux.org/index.php/VCS_PKGBUILD_Guidelines
2 # for more information on packaging from GIT sources.
4 # Maintainer: Your Name <youremail@domain.com>
8 pkgdesc="A shell for the v8 Javascript engine"
10 url="https://github.com/eddyb/v8-gearbox"
12 makedepends=('git' 'scons')
13 depends=('v8' 'libmysqlclient' 'zlib' 'openssl' 'libgl' 'freeglut' 'sdl' 'ncurses')
15 _gitroot="git://github.com/eddyb/v8-gearbox.git"
20 msg "Connecting to GIT server...."
22 if [ -d ${_gitname} ] ; then
23 cd ${_gitname} && git pull origin
24 msg "The local files are updated."
26 git clone ${_gitroot} ${_gitname}
29 msg "GIT checkout done or server timeout"
30 msg "Starting make..."
32 rm -rf ${srcdir}/${_gitname}-build
33 git clone ${srcdir}/${_gitname} ${srcdir}/${_gitname}-build
34 cd ${srcdir}/${_gitname}-build
40 install -m 755 -D ${srcdir}/${_gitname}-build/build/gearbox ${pkgdir}/usr/bin/gearbox
41 rm -rf ${srcdir}/${_gitname}-build