wok-next view openerp-server/receipt @ rev 11380

Improvement: libwebkit doesn't need -j1 to compile anymore
author Antoine Bodin <gokhlayeh@slitaz.org>
date Sat Dec 10 03:55:28 2011 +0100 (2011-12-10)
parents fee531f1e85e
children 600aaedb561d
line source
1 # SliTaz package receipt.
3 PACKAGE="openerp-server"
4 VERSION="5.0.1-0"
5 CATEGORY="office"
6 SHORT_DESC="Open source ERP server files."
7 MAINTAINER="pankso@slitaz.org"
8 TARBALL="$PACKAGE-$VERSION.tar.gz"
9 WEB_SITE="http://openerp.com/"
10 WGET_URL="$WEB_SITE/download/stable/source/$TARBALL"
12 DEPENDS="python postgresql libxml2-python libxslt psycopg2 python-reportlab \
13 python-pyparsing graphviz libgcrypt python-pil python-lxml matplotlib \
14 python-pyxml python-pychart python-pydot egenix-mx-base"
15 BUILD_DEPENDS="libxml2-python psycopg2 libxml2 libxslt-python python-reportlab \
16 python-pychart python-pydot python-dev"
18 # Rules to configure and make the package.
19 compile_rules()
20 {
21 cd $src
22 python setup.py install --root=$DESTDIR
23 }
25 # Rules to gen a SliTaz package suitable for Tazpkg.
26 genpkg_rules()
27 {
28 mkdir -p $fs/usr $fs/var/run/openerp $fs/var/log/openerp
29 chmod 777 $fs/var/run/openerp $fs/var/log/openerp
30 cp -a $_pkg/usr/bin $fs/usr
31 cp -a $_pkg/usr/lib $fs/usr
32 cp -a $stuff/* $fs
33 sed -i 's|cd .*_pkg|cd |' $fs/usr/bin/openerp-server
34 }
36 # Pre and post install commands for Tazpkg.
37 post_install()
38 {
39 #chroot $1/ adduser -H -D -S -s /bin/false -h /dev/null -g "OpenERP Daemon user" openerp
40 [ -z "$1" ] && /etc/init.d/$PACKAGE start
41 cat <<EOF
42 ----
43 To start $PACKAGE server you can run :
45 /etc/init.d/$PACKAGE start
47 Or add $PACKAGE to RUN_DAEMONS in /etc/rcS.conf
48 ----
49 EOF
50 }