1 # Contributor: C Anthony Risinger
5 pkgdesc="Implementation of the AUR in python (pyjs)"
6 url=http://devel.extof.me/aur-pyjs
9 depends=(python pyjamas-git)
14 : ${_gitroot:="git://github.com/extofme/aur-pyjs.git"}
15 : ${_gitname:="master"}
19 deploy=/usr/lib/${pkgname}
21 msg2 "Syncing with ${_gitroot}..."
22 g=${startdir}/.${pkgname}.git; w=${pkgdir}${deploy}
23 if [ -d "${g}" ]; then
25 # first allows _gitroot to change
26 git --git-dir=${g} remote set-url origin ${_gitroot} || return 1
27 git --git-dir=${g} fetch --all -n -u || return 1
28 git --git-dir=${g} update-ref HEAD origin/${_gitname}
29 git --git-dir=${g} read-tree --reset -u HEAD || return 1
31 git --work-tree=../pkg${deploy} clone ${_gitroot} ${g} || return 1
34 msg2 "Building the AUR..."
35 APP_TRANS_BASE_ALT=${startdir}/.. ${w}/aur trans || return 1
37 # trans automatically syncs pyjs if missing; remove