updated on Mon Jan 23 16:10:15 UTC 2012
[aur-mirror.git] / openerp-web / PKGBUILD
bloba8005f7ed7a934e27d07a4ae42ac420a104633eb
1 # Contributor: apkawa <apkawa@gmail.com>
3 pkgname=openerp-web
4 pkgver=6.0.3
5 pkgrel=1
6 pkgdesc="OpenERP web (python2)"
7 url="http://openerp.com/"
8 arch=('i686' 'x86_64')
9 license=(GPL3)
10 depends=('python2' 'python2-pytz'
11 'python-formencode' 'python-babel' 'python-dateutil'
12 'python-mako' 'cherrypy<=3.1.2' 'python-simplejson')
13 source=(
14 http://www.openerp.com/download/stable/source/$pkgname-$pkgver.tar.gz
15 openerp-web.rc
18 build() {
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')