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