pkgname=python3-chardet pkgver=5.2.0 pkgrel=2 pkgdesc="Character encoding auto-detection in Python. As smart as your browser." arch=('x86_64') license=('LGPL') url="https://chardet.readthedocs.io/en/latest/" depends=('python3') makedepends=('python3-build' 'python3-installer' 'python3-setuptools' 'python3-wheel') #source=("https://github.com/chardet/chardet/archive/${pkgver}.tar.gz") source=("https://files.pythonhosted.org/packages/source/c/chardet/chardet-${pkgver}.tar.gz") sha256sums=('1b3b6ff479a8c414bc3fa2c0852995695c4a026dcd6d0633b2dd092ca39c1cf7') build() { cd chardet-${pkgver} python3 -m build -nw } package() { cd chardet-${pkgver} python3 -m installer --destdir=${pkgdir} dist/*.whl install -Dm644 LICENSE ${pkgdir}/usr/share/licenses/${pkgname}/LICENSE }