1 # Contributor: Andrew Grigorev <andrew@ei-grad.ru>
3 pkgname=django-satchmo-hg
6 pkgdesc="Online shop in Django"
8 url="http://satchmoproject.com/"
10 depends=('python2' 'python-imaging' 'django' 'python-sphinx' 'docutils' 'pycrypto' 'python-south' 'python-yaml' 'django-registration' 'django-threaded-multihost' 'django-app-plugins' 'sorl-thumbnail' 'django-signals-ahoy' 'django-livesettings-hg' 'django-keyedcache-hg')
14 _hgroot='http://bitbucket.org/chris1610'
20 if [ -d $_hgrepo/.hg ]; then
21 (cd $_hgrepo && hg up -r $pkgver)
23 hg clone -r $pkgver $_hgroot/$_hgrepo $_hgrepo
26 msg 'Mercurial checkout done or server timeout'
28 if [ -d $_hgrepo-build ]; then
29 msg 'Removing old build directory'
33 msg 'Copying repository to another build directory'
34 cp -r $srcdir/$_hgrepo $srcdir/$_hgrepo-build
37 cd $srcdir/$_hgrepo-build
39 msg 's/python/python2/g'
40 find . -name '*.py' | xargs sed -i s/python/python2/g
42 msg 'Running setup.py'
44 python2 setup.py build || return 1
45 python2 setup.py install --root=$pkgdir --optimize=1 || return 1
46 install -D -m644 LICENSE $pkgdir/usr/share/licenses/$pkgname/LICENSE