SliTaz Packages

Community Doc Forum Pro Shop Bugs Hg
.

Receipt for package "python-chardet"

# SliTaz package receipt.

PACKAGE="python-chardet"
VERSION="4.0.0"        # last version with Python 2 support
CATEGORY="development"
MAINTAINER="maintainer@slitaz.org"
SHORT_DESC="Python module for character encoding auto-detection."
LICENSE="LGPL2.1"
WEB_SITE="https://pypi.org/project/chardet/"
REPOLOGY="python:chardet"

SOURCE="chardet"
TARBALL="$PACKAGE-$VERSION.tar.gz"
WGET_URL="https://files.pythonhosted.org/packages/source/${SOURCE:0:1}/$SOURCE/$SOURCE-$VERSION.tar.gz"

DEPENDS="python python-setuptools"
BUILD_DEPENDS="python-dev python-setuptools"

# What is the latest version available today?
current_version()
{
    wget -O - https://github.com/chardet/chardet/releases 2>/dev/null | \
    sed '/tag\//!d;s|.*tag/v*||;s|".*||;q'
}

# Rules to configure and make the package.
compile_rules()
{
    python    setup.py    \
        install        \
        --root=$DESTDIR    \
        --optimize=1
}

# Rules to gen a SliTaz package suitable for Tazpkg.
genpkg_rules()
{
    cook_copy_folders    bin
    cook_copy_folders    lib
}
5935 packages and 845883 files in cooking database (Thu Jun 27 00:01:54 2024)