wok view python-chardet/receipt @ rev 25614
Add libslirp
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Thu Aug 03 11:59:41 2023 +0000 (15 months ago) |
parents | 97eb61f05460 |
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 # What is the latest version available today?
20 current_version()
21 {
22 wget -O - https://github.com/chardet/chardet/releases 2>/dev/null | \
23 sed '/tag\//!d;s|.*tag/v*||;s|".*||;q'
24 }
26 # Rules to configure and make the package.
27 compile_rules()
28 {
29 python setup.py \
30 install \
31 --root=$DESTDIR \
32 --optimize=1
33 }
35 # Rules to gen a SliTaz package suitable for Tazpkg.
36 genpkg_rules()
37 {
38 cook_copy_folders bin
39 cook_copy_folders lib
40 }