wok view stoq/receipt @ rev 25503

f3: include extra programs
author Hans-G?nter Theisgen
date Fri Jan 27 10:37:43 2023 +0100 (15 months ago)
parents c85bdee1fe53
children
line source
1 # SliTaz package receipt.
3 PACKAGE="stoq"
4 VERSION="0.9.12"
5 CATEGORY="office"
6 SHORT_DESC="Stoq is a suite of Retail Management System applications."
7 MAINTAINER="claudinei@slitaz.org"
8 LICENSE="GPL2"
9 TARBALL="$PACKAGE-$VERSION.tar.gz"
10 WEB_SITE="https://web.archive.org/web/20150919172113/http://www.stoq.com.br/"
11 WGET_URL="https://web.archive.org/web/20150907231555if_/http://download.stoq.com.br/sources/$VERSION/$TARBALL"
13 DEPENDS="python pygtk postgresql psycopg2 zopeinterface python-pil \
14 python-reportlab stoqlib stoqdrivers python-kiwi python-gazpacho"
15 BUILD_DEPENDS="python python-dev pygtk python-kiwi stoqlib"
17 # What is the latest version available today?
18 current_version()
19 {
20 wget -O - https://github.com/stoq/stoq/tags 2>/dev/null | \
21 sed '/archive.*tar/!d;s|.*/v*\(.*\).tar.*|\1|;q'
22 }
24 # Rules to configure and make the package.
25 compile_rules()
26 {
27 cd $src
28 python setup.py install --root=$DESTDIR
29 }
31 # Rules to gen a SliTaz package suitable for Tazpkg.
32 genpkg_rules()
33 {
34 LOCALEDIR="$install/usr/share/locale"
35 for file in `find $install | grep 'pyc$'`; do
36 rm $file
37 done
38 mkdir -p $fs/usr/share/locale/pt $fs/etc
39 cp -a $install/etc/stoq $fs/etc
40 cp -a $install/usr/bin $fs/usr
41 cp -a $install/usr/lib $fs/usr
42 cp -a $install/usr/share $fs/usr
43 cp -a $LOCALEDIR/pt_BR/LC_MESSAGES $fs/usr/share/locale/pt
44 }