wok-6.x view python-peak-rules/receipt @ rev 24391

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