wok view python-soappy/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-soappy"
4 VERSION="0.12.22"
5 CATEGORY="development"
6 SHORT_DESC="SOAP services for python."
7 MAINTAINER="pascal.bellard@slitaz.org"
8 LICENSE="BSD"
9 WEB_SITE="https://pypi.python.org/pypi/SOAPpy"
10 SOURCE="SOAPpy"
11 TARBALL="$SOURCE-$VERSION.zip"
12 WGET_URL="https://pypi.python.org/packages/source/S/SOAPpy/$TARBALL"
14 DEPENDS="python"
15 BUILD_DEPENDS="wget python-dev python-setuptools"
17 # What is the latest version available today?
18 current_version()
19 {
20 wget -O - https://pypi.org/project/$SOURCE/ 2>/dev/null | \
21 sed "/\/$SOURCE-/!d;/zip/!d;s|.*$SOURCE-||;s|.zip.*||;q"
22 }
24 # Rules to configure and make the package.
25 compile_rules()
26 {
27 python setup.py install --prefix=/usr --root=$DESTDIR
28 }
30 # Rules to gen a SliTaz package suitable for Tazpkg.
31 genpkg_rules()
32 {
33 cp -a $install/usr/ $fs/
34 }