wok-6.x annotate stoq/receipt @ rev 25511

memtest: 386 support
author Pascal Bellard <pascal.bellard@slitaz.org>
date Mon Feb 13 17:17:56 2023 +0000 (21 months ago)
parents c85bdee1fe53
children
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@25105 10 WEB_SITE="https://web.archive.org/web/20150919172113/http://www.stoq.com.br/"
pascal@25102 11 WGET_URL="https://web.archive.org/web/20150907231555if_/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