1 pkgname=mozilla-firefox-sync-server-hg
4 pkgdesc="Mozilla weave server for built-it firefox sync"
6 url="http://docs.services.mozilla.com/howtos/run-sync.html"
8 depends=('python2-virtualenv' 'sqlite3')
9 makedepends=('mercurial')
12 _hgroot=https://hg.mozilla.org/services/server-full
17 msg "Connecting to Mercurial server...."
19 if [[ -d "$__hgrepo" ]]; then
22 msg "The local files are updated."
27 msg "Mercurial checkout done or server timeout"
28 msg "Starting build..."
30 rm -rf "$srcdir/$__hgrepo-build"
31 cp -r "$srcdir/$__hgrepo" "$srcdir/$__hgrepo-build"
32 cd "$srcdir/$__hgrepo-build"
37 make build VIRTUALENV=virtualenv2
41 cd "$srcdir/$__hgrepo-build"
43 cp -a . $pkgdir/opt/mozilla-firefox-sync-server
45 cd $pkgdir/opt/mozilla-firefox-sync-server
46 find . -name '*.pyc' -delete
47 find . -type f -exec sed -i "s|$srcdir/server-full-build|/opt/mozilla-firefox-sync-server|g" {} \;