1 # Maintainer: C Anthony Risinger
5 pkgdesc="Python Javascript Compiler, Desktop Widget Set and RIA Web Framework"
10 makedepends=(git setuptools)
11 optdepends=('pywebkitgtk-pythonwebkit: for PyJD (desktop app) support')
15 _gitroot="git://pyjamas.git.sourceforge.net/gitroot/pyjamas/pyjamas"
20 deploy=/usr/share/${pkgname}
22 local g=${startdir}/${pkgname}.git w=${pkgdir}${deploy}
24 if ! [ -d "${g}" ]; then
25 git --git-dir=${g} --work-tree=${w} init
28 msg2 "Syncing with ${_gitroot}..."
29 git --git-dir=${g} --work-tree=${w} fetch -fu ${_gitroot} +${_gitname}:${_gitname}
30 msg2 "Initializing src tree..."
31 git --git-dir=${g} --work-tree=${w} read-tree --reset -u ${_gitspec:-${_gitname}}
35 msg2 "Using remote branch: origin/${_gitname}. Deploying..."
36 python2 bootstrap.py ${deploy}/pyjs/src ${deploy} ${pkgdir}/usr &&
37 python2 run_bootstrap_first_then_setup.py build &&
38 python2 run_bootstrap_first_then_setup.py install --root=${pkgdir} ||