wok annotate stoq/receipt @ rev 25037

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