wok view py3k-six/receipt @ rev 25532

Add some current_version()
author Pascal Bellard <pascal.bellard@slitaz.org>
date Mon Feb 27 10:46:05 2023 +0000 (14 months ago)
parents bf5cc66f2a2b
children
line source
1 # SliTaz package receipt.
3 PACKAGE="py3k-six"
4 VERSION="1.16.0"
5 CATEGORY="development"
6 SHORT_DESC="Six is a Python 2 and 3 compatibility library."
7 MAINTAINER="maintainer@slitaz.org"
8 LICENSE="MIT"
9 WEB_SITE="https://pypi.org/project/six/"
10 REPOLOGY="python:six"
12 SOURCE="six"
13 TARBALL="$SOURCE-$VERSION.tar.gz"
14 WGET_URL="https://files.pythonhosted.org/packages/source/${SOURCE:0:1}/$SOURCE/$TARBALL"
16 DEPENDS="py3k"
17 BUILD_DEPENDS="py3k-dev py3k-setuptools_scm"
19 HOST_ARCH="i486 arm"
21 # What is the latest version available today?
22 current_version()
23 {
24 wget -O - $WEB_SITE 2>/dev/null | \
25 sed '/release_/!d;/project/!d;s|.*six/||;s|/.*||;q'
26 }
28 # Rules to configure and make the package.
29 compile_rules()
30 {
31 python3 setup.py install --root=$DESTDIR
32 }
34 # Rules to gen a SliTaz package suitable for Tazpkg.
35 genpkg_rules()
36 {
37 cook_copy_folders lib
38 }