blob: 5782f76ed2cc7b5f7ec5321024bb071a0f53efad (
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
98
|
# Maintainer: AlphaJack <alphajack at tuta dot io>
# Contributor: Petit Pierre <petit.pierre@outlook.com>
# Contributor: Bidossessi Sodonon
pkgname="odoo"
pkgver=17.0
pkgrel=10
pkgdesc="Web-based Open Source Business Apps"
url="https://www.odoo.com/"
arch=("any")
license=("LGPL-3.0-only") # thanks SamWhited
conflicts=("openerp")
replaces=("openerp")
depends=("postgresql"
"wkhtmltopdf"
"python<3.12"
"python-babel"
"python-chardet"
"python-cryptography"
"python-dateutil"
"python-decorator"
"python-docutils"
"python-ebaysdk"
"python-freezegun"
"python-geoip2" # 17
"python-gevent"
"python-greenlet"
"python-html2text"
"python-idna"
"python-jinja"
"python-libsass"
"python-lxml<4.9.3"
"python-mako"
"python-markupsafe"
"python-mock"
"python-num2words"
"python-ofxparse"
"python-passlib"
"python-pillow"
"python-polib"
"python-psutil"
"python-psycopg2"
"python-pydot"
"python-pyopenssl"
"python-pypdf2"
"python-pyserial"
"python-pytz"
"python-pyusb"
"python-qrcode"
"python-reportlab3" # thanks Weby, HLFH
"python-requests"
"python-rjsmin" # 17
"python-stdnum"
"python-urllib3"
"python-vobject"
"python-werkzeug2" # thanks HLFH
"python-xlrd-1" # thanks HLFH
"python-xlsxwriter"
"python-xlwt"
"python-zeep"
)
optdepends=("python-ldap: LDAP connector" # 16
)
makedepends=("python-build" "python-installer" "python-wheel")
source=("https://nightly.odoo.com/$pkgver/nightly/src/${pkgname}_$pkgver.latest.tar.gz"
"odoo.conf"
"odoo.logrotate"
"odoo.service"
"odoo.sysusers"
"odoo.tmpfiles")
b2sums=('SKIP'
'f9b3f553e72864565b8323460fbda64745e07838c30ad6cfe57c28100f3b53805d23162262b37984227a18b48283f1e4d4c090b71034331ddcd8588480bd7d06'
'1ef682d87ba12dd8a185ba36701b737f8feb0c1e6eb4b23302a0dc5930ef63c990af65bc45a36313f879a29a23cbdb602e7fc34ba9cee2e46d9a3d8407d5751a'
'a14636791b4f0ae76da8a69e95a6926287f5cfa215499be9a6880b6b63fa2081ecdd32ea0dc10fe4d7fe2d14968ac4ed08701c972bc2170e9f4dc36efa406c02'
'311757f40c9de2845482ebf22e36469cc1058396bba9edaa2265a2bd085e2bcdd22115b098af3aaa037f7dac3a81212ae8b249df0b268f6bf2d798ee01698aae'
'f899025f7637aaed2d231de33e5c2d2a831f21f038cb86b9794f9f75224f6eb14b6c9baf95663278ae15568a80ac49354446202232f38577991a24d332373b53')
backup=("etc/odoo/odoo.conf")
install="odoo.install"
options=("!strip")
build(){
cd "$pkgname-$pkgver.post"*
python -m build --wheel --no-isolation
}
package(){
cd "$pkgname-$pkgver.post"*
python -m installer --destdir="$pkgdir" dist/*.whl
# configuration file
install -d -m 750 "$pkgdir/etc/odoo"
install -D -m 640 "$srcdir/odoo.conf" "$pkgdir/etc/odoo/odoo.conf"
# logrotate file
install -D -m 644 "$srcdir/odoo.logrotate" "$pkgdir/etc/logrotate.d/odoo"
# systemd files
install -D -m 644 "$srcdir/odoo.service" "$pkgdir/usr/lib/systemd/system/odoo.service"
install -D -m 644 "$srcdir/odoo.sysusers" "$pkgdir/usr/lib/sysusers.d/odoo.conf"
install -D -m 644 "$srcdir/odoo.tmpfiles" "$pkgdir/usr/lib/tmpfiles.d/odoo.conf"
}
|