wok view stoq/receipt @ rev 4308
Up: ewl (rev 42530) and rage (fix both build with last emotion)
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Mon Sep 28 15:33:14 2009 +0200 (2009-09-28) |
parents | |
children | 822e03f5288d |
line source
1 # SliTaz package receipt.
3 PACKAGE="stoq"
4 VERSION="0.9.10"
5 CATEGORY="office"
6 SHORT_DESC="Stoq is a suite of Retail Management System applications."
7 MAINTAINER="claudinei@slitaz.org"
8 DEPENDS="python pygtk postgresql psycopg2 zopeinterface python-pil \
9 python-reportlab stoqlib stoqdrivers python-kiwi python-gazpacho"
10 BUILD_DEPENDS="python python-dev pygtk python-kiwi stoqlib"
11 TARBALL="$PACKAGE-$VERSION.tar.gz"
12 WEB_SITE="http://www.stoq.com.br"
13 WGET_URL="http://download.stoq.com.br/sources/$VERSION/$TARBALL"
15 # Rules to configure and make the package.
16 compile_rules()
17 {
18 cd $src
19 sed -i "s/STOQLIB_REQUIRED = '0.9.9'/STOQLIB_REQUIRED = '0.9.10'/" \
20 setup.py
21 python setup.py install --root=$PWD/_pkg
22 }
24 # Rules to gen a SliTaz package suitable for Tazpkg.
25 genpkg_rules()
26 {
27 LOCALEDIR="$WOK/$PACKAGE/$PACKAGE-$VERSION/locale"
28 for file in `find $_pkg | grep 'pyc$'`; do
29 rm $file
30 done
31 mkdir -p $fs/usr/share/locale/pt $fs/etc
32 cp -a $_pkg/etc/stoq $fs/etc
33 cp -a $_pkg/usr/bin $fs/usr
34 cp -a $_pkg/usr/lib $fs/usr
35 cp -a $_pkg/usr/share $fs/usr
36 cp -a $LOCALEDIR/pt_BR/LC_MESSAGES $fs/usr/share/locale/pt
37 }