wok view openerp-client/receipt @ rev 25524

created recipes for tree-sitter and tree-sitter-dev 0.20.7
author Hans-G?nter Theisgen
date Fri Feb 24 17:21:52 2023 +0100 (21 months ago)
parents 505d1daeed6c
children
line source
1 # SliTaz package receipt.
3 PACKAGE="openerp-client"
4 VERSION="5.0.1-0"
5 CATEGORY="office"
6 SHORT_DESC="Open source ERP client files."
7 MAINTAINER="pankso@slitaz.org"
8 LICENSE="GPL3"
9 TARBALL="$PACKAGE-$VERSION.tar.gz"
10 WEB_SITE="http://openerp.com/"
11 WGET_URL="https://nightly.odoo.com/old/openerp-${VERSION%.*}/$TARBALL"
12 SUGGESTED="epdfview"
14 DEPENDS="postgresql-client python pygtk pygobject pycairo python-pyxml \
15 egenix-mx-base"
16 BUILD_DEPENDS="python python-dev pygtk egenix-mx-base"
18 # What is the latest version available today?
19 current_version()
20 {
21 local a=$(wget -O - https://nightly.odoo.com/old/ 2>/dev/null | \
22 sed '/openerp-/!d;s|.*="||;s|/".*||' | sort -Vr | sed q)
23 local b=$(wget -O - https://nightly.odoo.com/old/$a/ 2>/dev/null | \
24 sed '/href="[0-9]/!d;s|.*="||;s|/".*||' | sort -Vr | sed q)
25 wget -O - https://nightly.odoo.com/old/$a/$b/ 2>/dev/null | \
26 sed '/openerp-client/!d;/tar/!d;s|.*-client-||;s|.tar.*||'
27 }
29 # Rules to configure and make the package.
30 compile_rules()
31 {
32 sed 's/^#.*//' < setup.py > setup2.py
33 python setup2.py build
34 python setup2.py install --root=$DESTDIR
35 for i in $install/usr/share/locale/*; do
36 [ -s bin/po/$(basename $i).po ] &&
37 rm $i/LC_MESSAGES/$PACKAGE.mo &&
38 msgfmt -o $i/LC_MESSAGES/$PACKAGE.mo bin/po/$(basename $i).po
39 done
40 }
42 # Rules to gen a SliTaz package suitable for Tazpkg.
43 genpkg_rules()
44 {
45 mkdir -p $fs/usr/share/applications
46 cp -a $install/usr/bin $fs/usr
47 cp -a $install/usr/lib $fs/usr
48 cp -a $install/usr/share/pixmaps $fs/usr/share
49 cp -a $install/usr/share/openerp-client $fs/usr/share
50 cp -a $install/usr/share/locale $fs/usr/share
51 cp stuff/openerp-client.desktop $fs/usr/share/applications
52 sed -i 's|cd .*install|cd |' $fs/usr/bin/openerp-client
53 mkdir -p $fs/usr/share/openerp-client/pixmaps/
54 ln -s /usr/share/pixmaps/openerp-client/openerp_logo.png \
55 $fs/usr/share/openerp-client/pixmaps
56 }