python-charset-normalizer 3.4.0-1

This commit is contained in:
xhaa123 2024-11-04 14:36:59 +08:00
parent c8317f1df1
commit aeebe3709f

View File

@ -5,25 +5,30 @@
# Maintainer: Future Linux Team <future_linux@163.com>
pkgname=python-charset-normalizer
pkgver=3.3.2
pkgver=3.4.0
pkgrel=1
pkgdesc="Encoding and language detection alternative to chardet"
arch=('x86_64')
url="https://github.com/ousret/charset_normalizer"
license=('MIT')
depends=('python')
makedepends=('python-setuptools')
source=(https://files.pythonhosted.org/packages/source/c/${pkgname#*-}/${pkgname#*-}-${pkgver}.tar.gz)
sha256sums=(f30c3cb33b24454a82faecaf01b19c18562b1e89558fb6c56de4d9118a032fd5)
makedepends=(
'python-build'
'python-installer'
'python-setuptools'
'python-wheel'
)
source=(https://github.com/Ousret/charset_normalizer/archive/${pkgver}/charset_normalizer-${pkgver}.tar.gz)
sha256sums=(e8dfa606a7c3f4d4540e7f648a602338323ee0f5e458043accf59b4a0493783f)
build() {
cd ${pkgname#*-}-${pkgver}
cd charset_normalizer-${pkgver}
python3 setup.py build
python3 -m build --wheel --skip-dependency-check --no-isolation
}
package() {
cd ${pkgname#*-}-${pkgver}
cd charset_normalizer-${pkgver}
python3 setup.py install --root=${pkgdir} --optimize=1 --skip-build
python3 -m installer -d ${pkgdir} dist/*.whl
}