wok view openerp-client/receipt @ rev 24559

updated fop (2.4 -> 2.7)
author Hans-G?nter Theisgen
date Fri Feb 25 15:52:00 2022 +0100 (2022-02-25)
parents 16df76e1fc6a
children 505d1daeed6c
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="$WEB_SITE/download/stable/source/$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 # Rules to configure and make the package.
19 compile_rules()
20 {
21 sed 's/^#.*//' < setup.py > setup2.py
22 python setup2.py build
23 python setup2.py install --root=$DESTDIR
24 for i in $install/usr/share/locale/*; do
25 [ -s bin/po/$(basename $i).po ] &&
26 rm $i/LC_MESSAGES/$PACKAGE.mo &&
27 msgfmt -o $i/LC_MESSAGES/$PACKAGE.mo bin/po/$(basename $i).po
28 done
29 }
31 # Rules to gen a SliTaz package suitable for Tazpkg.
32 genpkg_rules()
33 {
34 mkdir -p $fs/usr/share/applications
35 cp -a $install/usr/bin $fs/usr
36 cp -a $install/usr/lib $fs/usr
37 cp -a $install/usr/share/pixmaps $fs/usr/share
38 cp -a $install/usr/share/openerp-client $fs/usr/share
39 cp -a $install/usr/share/locale $fs/usr/share
40 cp stuff/openerp-client.desktop $fs/usr/share/applications
41 sed -i 's|cd .*install|cd |' $fs/usr/bin/openerp-client
42 mkdir -p $fs/usr/share/openerp-client/pixmaps/
43 ln -s /usr/share/pixmaps/openerp-client/openerp_logo.png \
44 $fs/usr/share/openerp-client/pixmaps
45 }