1 # Contributor: apkawa <apkawa@gmail.com>
6 pkgdesc="OpenERP web (python2)"
7 url="http://openerp.com/"
10 depends=('python2' 'python2-pytz'
11 'python-formencode' 'python-babel' 'python-dateutil'
12 'python-mako' 'cherrypy<=3.1.2' 'python-simplejson')
14 http://www.openerp.com/download/stable/source/$pkgname-$pkgver.tar.gz
19 cd "$srcdir/$pkgname-$pkgver"
21 mkdir ${pkgdir}/etc/{rc.d,openerp} -p
22 mkdir ${pkgdir}/usr/doc/openerp-web/ -p
23 #TODO fixed daemonize =_=. RUN AS SCREEN?
24 install -Dm 755 ${srcdir}/openerp-web.rc ${pkgdir}/etc/rc.d/openerp-web
26 python2 setup.py install --root=$pkgdir
27 mv ${pkgdir}/usr/addons ${pkgdir}/usr/lib/python2.*/site-packages/
28 cp ${pkgdir}/usr/openobject ${pkgdir}/usr/lib/python2.*/site-packages/ -r
29 rm -rf ${pkgdir}/usr/openobject
30 cp ${pkgdir}/usr/doc/openerp-web.cfg ${pkgdir}/etc/openerp/
32 cp ${pkgdir}/usr/doc/{LICENSE.txt,ChangeLog,openerp-web.cfg,packaging.txt} ${pkgdir}/usr/doc/openerp-web/
33 rm ${pkgdir}/usr/doc/{LICENSE.txt,ChangeLog,openerp-web.cfg,packaging.txt}
37 # vim:set ts=4 sw=4 et:
39 md5sums=('eaa564874a29993ce9d9d82247103fe5'
40 'b517fa19d0263ee18edd2ad1c8c7de90')