wok-6.x view python-chardet/receipt @ rev 25360

updated tk and tk-dev (8.6.10 -> 8.6.12)
author Hans-G?nter Theisgen
date Wed Jul 27 08:45:54 2022 +0100 (2022-07-27)
parents 5ea0ce1cecc0
children
line source
1 # SliTaz package receipt.
3 PACKAGE="python-chardet"
4 VERSION="4.0.0" # last version with Python 2 support
5 CATEGORY="development"
6 MAINTAINER="maintainer@slitaz.org"
7 SHORT_DESC="Python module for character encoding auto-detection."
8 LICENSE="LGPL2.1"
9 WEB_SITE="https://pypi.org/project/chardet/"
10 REPOLOGY="python:chardet"
12 SOURCE="chardet"
13 TARBALL="$PACKAGE-$VERSION.tar.gz"
14 WGET_URL="https://files.pythonhosted.org/packages/source/${SOURCE:0:1}/$SOURCE/$SOURCE-$VERSION.tar.gz"
16 DEPENDS="python python-setuptools"
17 BUILD_DEPENDS="python-dev python-setuptools"
19 current_version()
20 {
21 wget -O - ${WGET_URL%/arch*}/releases 2>/dev/null | \
22 sed '/archive.*tar/!d;s|.*/\(.*\).tar.*|\1|;q'
23 }
25 # Rules to configure and make the package.
26 compile_rules()
27 {
28 python setup.py \
29 install \
30 --root=$DESTDIR \
31 --optimize=1
32 }
34 # Rules to gen a SliTaz package suitable for Tazpkg.
35 genpkg_rules()
36 {
37 cook_copy_folders bin
38 cook_copy_folders lib
39 }