wok annotate openerp-client/receipt @ rev 25473

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