# Compiling Time: 0 SBU
# Maintainer: voroskoi <voroskoi@frugalware.org>

pkgname=chardet3
pkgver=5.2.0
pkgrel=2
pkgdesc="Character encoding auto-detection in Python 2"
url="https://github.com/byroot/chardet"
depends=("python3>=3.13")
makedepends=('python3-build' 'python3-installer' 'python3-flit_core' 'python3-setuptools' 'python3-wheel')
groups=('apps-extra')
archs=('x86_64')
_F_pypi_name="chardet"
Finclude pypi
sha1sums=('02a2b27a385081c6a0a17b9302c82c9592514f04')
_F_python_version=python3

replaces=("chardet" "python-chardet" "python3-chardet")
provides=("${replaces[@]}")
conflicts=("${replaces[@]}")

build() {
        Fcd
        Fpatchall
        Fexec python3 -m build -nw || Fdie
        Fexec python3 -m installer --destdir="$Fdestdir" dist/*.whl || Fdie
}

# optimization OK
