updated on Sun Jan 15 08:01:04 UTC 2012
[aur-mirror.git] / pyjamas-git / PKGBUILD
blob2728f29e86c0fe7463037002e38bf09e12bd1c27
1 # Maintainer: C Anthony Risinger
2 pkgname=pyjamas-git
3 pkgver=20101115
4 pkgrel=1
5 pkgdesc="Python Javascript Compiler, Desktop Widget Set and RIA Web Framework"
6 url=http://pyjs.org/
7 arch=(any)
8 license=(Apache2)
9 depends=(python2)
10 makedepends=(git setuptools)
11 optdepends=('pywebkitgtk-pythonwebkit: for PyJD (desktop app) support')
12 provides=(pyjamas)
13 source=()
15 _gitroot="git://pyjamas.git.sourceforge.net/gitroot/pyjamas/pyjamas"
16 _gitname="master"
18 build() {
20     deploy=/usr/share/${pkgname}
22     local g=${startdir}/${pkgname}.git w=${pkgdir}${deploy}
23     mkdir -p ${w}
24     if ! [ -d "${g}" ]; then
25         git --git-dir=${g} --work-tree=${w} init
26     fi  
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}}
33     cd ${w}
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} ||
39         return 1