wok-6.x view python-distribute/receipt @ rev 24699
Add some current_version
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sun Mar 13 19:47:29 2022 +0000 (2022-03-13) |
parents | 7d672a2330b8 |
children | e717a4953b0e |
line source
1 # SliTaz package receipt.
3 PACKAGE="python-distribute"
4 VERSION="0.7.3"
5 CATEGORY="development"
6 SHORT_DESC="Easily build and distribute Python packages"
7 MAINTAINER="slaxemulator@gmail.com"
8 LICENSE="PSL"
9 WEB_SITE="http://pypi.python.org/pypi/distribute"
10 SOURCE="distribute"
11 TARBALL="$SOURCE-$VERSION.zip"
12 WGET_URL="https://pypi.python.org/packages/source/d/distribute/$TARBALL"
13 HOST_ARCH="i486 arm"
15 DEPENDS="python"
16 BUILD_DEPENDS="python-dev wget"
18 # What is the latest version available today?
19 current_version()
20 {
21 wget -O - https://pypi.org/project/$SOURCE/ 2>/dev/null | \
22 sed "/$SOURCE-/!d;/zip/!d;s|.*$SOURCE-||;s|.zip.*||;q"
23 }
25 # Rules to configure and make the package.
26 compile_rules()
27 {
28 cd $src
29 python setup.py install --prefix=/usr --root=$DESTDIR
30 }
32 # Rules to gen a SliTaz package suitable for Tazpkg.
33 genpkg_rules()
34 {
35 cp -a $install/* $fs
36 }