wok view python-enum34/receipt @ rev 24535

Add some current_version
author Pascal Bellard <pascal.bellard@slitaz.org>
date Wed Feb 23 11:49:52 2022 +0000 (2022-02-23)
parents 74f2b86be90c
children 870e1ce31226
line source
1 # SliTaz package receipt.
3 PACKAGE="python-enum34"
4 VERSION="1.1.6"
5 CATEGORY="development"
6 SHORT_DESC="Python 3.4 Enum backport"
7 MAINTAINER="pascal.bellard@slitaz.org"
8 LICENSE="BSD"
9 WEB_SITE="https://bitbucket.org/stoneleaf/enum34/"
10 TARBALL="$PACKAGE-$VERSION.zip"
11 WGET_URL="https://files.pythonhosted.org/packages/e8/26/a6101edcf724453845c850281b96b89a10dac6bd98edebc82634fccce6a5/enum34-1.1.6.zip"
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/enum34/ 2>/dev/null | \
20 sed '/enum34 [0-9]/!d;s|.*m34.||;q'
21 }
23 # Rules to configure and make the package.
24 compile_rules()
25 {
26 python setup.py install --prefix=/usr --root=$DESTDIR
27 }
29 # Rules to gen a SliTaz package suitable for Tazpkg.
30 genpkg_rules()
31 {
32 cp -a $install/usr $fs/
33 }