wok-6.x annotate openerp-client/receipt @ rev 22740
updated drakon-editor (1.29 -> 1.31)
author | Hans-G?nter Theisgen |
---|---|
date | Fri Jan 24 07:47:30 2020 +0100 (2020-01-24) |
parents | 16df76e1fc6a |
children | 505d1daeed6c |
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/" |
pankso@3366 | 11 WGET_URL="$WEB_SITE/download/stable/source/$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 |
pankso@3366 | 18 # Rules to configure and make the package. |
pankso@3366 | 19 compile_rules() |
pankso@3366 | 20 { |
pankso@3366 | 21 sed 's/^#.*//' < setup.py > setup2.py |
pankso@3366 | 22 python setup2.py build |
pascal@15590 | 23 python setup2.py install --root=$DESTDIR |
pascal@20648 | 24 for i in $install/usr/share/locale/*; do |
pascal@20648 | 25 [ -s bin/po/$(basename $i).po ] && |
pascal@20648 | 26 rm $i/LC_MESSAGES/$PACKAGE.mo && |
pascal@20648 | 27 msgfmt -o $i/LC_MESSAGES/$PACKAGE.mo bin/po/$(basename $i).po |
pascal@20648 | 28 done |
pankso@3366 | 29 } |
pankso@3366 | 30 |
pankso@3366 | 31 # Rules to gen a SliTaz package suitable for Tazpkg. |
pankso@3366 | 32 genpkg_rules() |
pankso@3366 | 33 { |
pankso@3366 | 34 mkdir -p $fs/usr/share/applications |
pascal@15590 | 35 cp -a $install/usr/bin $fs/usr |
pascal@15590 | 36 cp -a $install/usr/lib $fs/usr |
pascal@15590 | 37 cp -a $install/usr/share/pixmaps $fs/usr/share |
pascal@15590 | 38 cp -a $install/usr/share/openerp-client $fs/usr/share |
pascal@15590 | 39 cp -a $install/usr/share/locale $fs/usr/share |
pankso@3366 | 40 cp stuff/openerp-client.desktop $fs/usr/share/applications |
pascal@15590 | 41 sed -i 's|cd .*install|cd |' $fs/usr/bin/openerp-client |
pankso@3366 | 42 mkdir -p $fs/usr/share/openerp-client/pixmaps/ |
pankso@3366 | 43 ln -s /usr/share/pixmaps/openerp-client/openerp_logo.png \ |
pankso@3366 | 44 $fs/usr/share/openerp-client/pixmaps |
pankso@3366 | 45 } |