summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: a23f202a09be81a3bf1fa1a07deeb4e1390b1297 (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
# Maintainer: Petit Pierre <petit.pierre@outlook.com>
# Contributor: Bidossessi Sodonon

pkgname=odoo
pkgver=13.0
_pkgsubver=20200321
pkgrel=4
pkgdesc="Web-based Open Source Business Apps"
url=https://www.odoo.com/
arch=('any')
license=('GPL3')
conflicts=('openerp')
replaces=('openerp')
makedepends=('python-setuptools')
depends=(
  'wkhtmltopdf-static'
  'python'
  'python-babel'
  'python-chardet'
  'python-decorator'
  'python-docutils'
  'python-ebaysdk'
  'python-feedparser'
  'python-gevent'
  'python-greenlet'
  'python-html2text'
  'python-jinja'
  'sassc'
  'python-lxml'
  'python-mako'
  'python-markupsafe'
  'python-mock'
  'python-num2words'
  'python-ofxparse'
  'python-passlib'
  'python-pillow'
  'python-polib'
  'python-psutil'
  'python-psycopg2'
  'python-pydot'
  'python-ldap'
  'python-pyparsing'
  'python-pypdf2'
  'python-pyserial'
  'python-dateutil'
  'python-pytz'
  'python-pyusb'
  'python-qrcode'
  'python-reportlab'
  'python-requests'
  'python-zeep'
  'python-vatnumber'
  'python-vobject'
  'python-werkzeug'
  'python-xlsxwriter'
  'python-xlwt'
  'python-xlrd'
  
)

source=("https://nightly.odoo.com/${pkgver}/nightly/src/${pkgname}_${pkgver}.${_pkgsubver}.tar.gz"
        odoo.conf
        odoo.confd
        odoo.service
        odoo.sysusers)
md5sums=('59de4b28f920bfdcf9a6a9eb0502379f'
         '863418f31f0fb982cde0008fa63f35f0'
         '742fa9ad94a92ac2aa910197a26af4e8'
         '5bddcc6edbdefdd07cae945165c63604'
         '720b7b8c3df3142dfd0383acd1c9e9b4')

backup=('etc/odoo/odoo.conf')
install=odoo.install

build() {
  cd ${srcdir}/${pkgname}-${pkgver}.post${_pkgsubver}
  python setup.py build
}

package()
{
  cd ${srcdir}/${pkgname}-${pkgver}.post${_pkgsubver}
  python setup.py install --root="${pkgdir}" --optimize=1 --skip-build

  mkdir -p ${pkgdir}/etc/{conf.d,odoo}
  mkdir -p ${pkgdir}/usr/lib/systemd/system
  install -Dm 644 ${srcdir}/odoo.conf ${pkgdir}/etc/odoo/odoo.conf
  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.sysusers ${pkgdir}/usr/lib/sysusers.d/odoo.conf
}