wok-6.x view openerp-client/receipt @ rev 15845

dosfstools: update genpkg_rules
author Pascal Bellard <pascal.bellard@slitaz.org>
date Mon Jan 27 11:23:53 2014 +0000 (2014-01-27)
parents 3fc135d04ae4
children 16df76e1fc6a
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 egenix-mx-base"
15 BUILD_DEPENDS="python python-dev pygtk egenix-mx-base"
17 # Rules to configure and make the package.
18 compile_rules()
19 {
20 cd $src
21 sed 's/^#.*//' < setup.py > setup2.py
22 python setup2.py build
23 python setup2.py install --root=$DESTDIR
24 }
26 # Rules to gen a SliTaz package suitable for Tazpkg.
27 genpkg_rules()
28 {
29 mkdir -p $fs/usr/share/applications
30 cp -a $install/usr/bin $fs/usr
31 cp -a $install/usr/lib $fs/usr
32 cp -a $install/usr/share/pixmaps $fs/usr/share
33 cp -a $install/usr/share/openerp-client $fs/usr/share
34 cp -a $install/usr/share/locale $fs/usr/share
35 cp stuff/openerp-client.desktop $fs/usr/share/applications
36 sed -i 's|cd .*install|cd |' $fs/usr/bin/openerp-client
37 mkdir -p $fs/usr/share/openerp-client/pixmaps/
38 ln -s /usr/share/pixmaps/openerp-client/openerp_logo.png \
39 $fs/usr/share/openerp-client/pixmaps
40 }