summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: e336496ab456c4881da60e407da885cb97ac7a70 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
# Maintainer: Miguel Revilla <yo at miguelrevilla dot com>
# Contributor: Bidossessi Sodonon

pkgname=odoo10
_pkgname=odoo
pkgver=10.0
_pkgsubver=20190123
pkgrel=24
pkgdesc="Web-based Open Source Business Apps"
url=http://odoo.com/
arch=('any')
license=(GPL3)
provides=("${pkgname}")
conflicts=('openerp' 'odoo')
replaces=('openerp')
depends=(
    'gzip'
    'nodejs-less-plugin-clean-css'
    'postgresql'
    'python2'
    'python2-argparse'
    'python2-babel'
    'python2-dateutil'
    'python2-docutils'
    'python2-decorator'
    'python2-feedparser'
    'python2-gdata'
    'python2-gevent'
    'python2-greenlet'
    'python2-jcconv'
    'python2-jinja'
    'python2-ldap'
    'python2-lxml'
    'python2-mako'
    'python2-markupsafe'
    'python2-mock'
    'python2-openid'
    'python2-passlib'
    'python2-paramiko'
    'python2-pillow'
    'python2-psutil'
    'python2-psycopg2'
    'python2-psycogreen'
    'python2-pychart'
    'python2-pydot'
    'python2-pyparsing'
    'python2-pyqrcode'
    'python2-pyserial'
    'python2-pyusb'
    'python2-reportlab'
    'python2-pypdf'
    'python2-pytz'
    'python2-requests'
    'python2-six'
    'python2-suds-jurko'
    'python2-unittest2'
    'python2-vatnumber'
    'python2-vobject'
    'python2-werkzeug'
    'python2-wsgiref'
    'python2-xlwt'
    'python2-xlsxwriter'
    'python2-xlrd'
    'python2-yaml'
    'python2-zsi'
    'wkhtmltopdf-static'
)
optdepends=(
    'python2-ofxparse'
    'python2-qrcode'
)

source=(
  "http://nightly.odoo.com/10.0/nightly/src/${_pkgname}_${pkgver}.${_pkgsubver}.tar.gz"
  odoo.confd
  odoo.service
  odoo.conf
)
backup=('etc/odoo/odoo.conf')
install=odoo.install

package()
{
  cd ${srcdir}/${_pkgname}-${pkgver}.post${_pkgsubver}
  # Force package data inclusion
  sed -i -e s/#include_package_data/include_package_data/ setup.py
  python2 setup.py install --root="${pkgdir}"
  mkdir ${pkgdir}/etc/{conf.d,odoo} -p
  mkdir ${pkgdir}/usr/lib/systemd/system/ -p
  install -Dm 644 ${srcdir}/odoo.confd ${pkgdir}/etc/conf.d/odoo
  install -Dm 644 ${srcdir}/odoo.service ${pkgdir}/usr/lib/systemd/system/odoo.service
  install -Dm 644 ${srcdir}/odoo.conf ${pkgdir}/etc/odoo/odoo.conf
}
md5sums=('4330a6934e735f6145800557a5ae3f86'
         '742fa9ad94a92ac2aa910197a26af4e8'
         '5bddcc6edbdefdd07cae945165c63604'
         '863418f31f0fb982cde0008fa63f35f0')