wok annotate python-peak-rules/receipt @ rev 25608

Update some current_version
author Pascal Bellard <pascal.bellard@slitaz.org>
date Thu Jul 20 09:05:42 2023 +0000 (9 months ago)
parents 104a2a2e5484
children
rev   line source
al@18956 1 # SliTaz package receipt.
al@18956 2
al@18956 3 PACKAGE="python-peak-rules"
al@18956 4 VERSION="0.5a1.dev-r2713"
al@18956 5 CATEGORY="misc"
al@18956 6 SHORT_DESC="Generic functions and business rules support systems"
al@18956 7 MAINTAINER="al.bobylev@gmail.com"
al@18956 8 LICENSE="ZPL2.1"
pascal@25608 9 SOURCE="PEAK-Rules"
al@18956 10 WEB_SITE="https://pypi.python.org/pypi/PEAK-Rules"
al@18956 11 TARBALL="$PACKAGE-$VERSION.tar.gz"
al@18956 12 WGET_URL="http://peak.telecommunity.com/snapshots/PEAK-Rules-$VERSION.tar.gz"
al@18956 13
al@18956 14 DEPENDS="python"
pascal@21582 15 BUILD_DEPENDS="python-setuptools"
al@18956 16
pascal@24391 17 # What is the latest version available today?
pascal@24391 18 current_version()
pascal@24391 19 {
pascal@24391 20 wget -O - https://pypi.org/project/$SOURCE/ 2>/dev/null | \
pascal@25608 21 sed "/$SOURCE\/[0-9]/!d;s|.*$SOURCE/||;s|/.*||;q"
pascal@24391 22 }
pascal@24391 23
al@18956 24 # Rules to configure and make the package.
al@18956 25 compile_rules()
al@18956 26 {
al@18956 27 python setup.py build &&
al@18956 28 python setup.py install --root=$install
al@18956 29 }
al@18956 30
al@18956 31 # Rules to gen a SliTaz package suitable for Tazpkg.
al@18956 32 genpkg_rules()
al@18956 33 {
al@18956 34 cp -a $install/* $fs
al@18956 35 }