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"

current_version()
{
    wget -O - ${WGET_URL%/arch*}/releases 2>/dev/null | \
    sed '/archive.*tar/!d;s|.*/\(.*\).tar.*|\1|;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
}
6025 packages and 203154 files in current database (Thu Apr 25 06:17:47 2024)