python-charset-normalizer 3.4.0-1
This commit is contained in:
parent
c8317f1df1
commit
aeebe3709f
21
PKGBUILD
21
PKGBUILD
@ -5,25 +5,30 @@
|
|||||||
|
|
||||||
# Maintainer: Future Linux Team <future_linux@163.com>
|
# Maintainer: Future Linux Team <future_linux@163.com>
|
||||||
pkgname=python-charset-normalizer
|
pkgname=python-charset-normalizer
|
||||||
pkgver=3.3.2
|
pkgver=3.4.0
|
||||||
pkgrel=1
|
pkgrel=1
|
||||||
pkgdesc="Encoding and language detection alternative to chardet"
|
pkgdesc="Encoding and language detection alternative to chardet"
|
||||||
arch=('x86_64')
|
arch=('x86_64')
|
||||||
url="https://github.com/ousret/charset_normalizer"
|
url="https://github.com/ousret/charset_normalizer"
|
||||||
license=('MIT')
|
license=('MIT')
|
||||||
depends=('python')
|
depends=('python')
|
||||||
makedepends=('python-setuptools')
|
makedepends=(
|
||||||
source=(https://files.pythonhosted.org/packages/source/c/${pkgname#*-}/${pkgname#*-}-${pkgver}.tar.gz)
|
'python-build'
|
||||||
sha256sums=(f30c3cb33b24454a82faecaf01b19c18562b1e89558fb6c56de4d9118a032fd5)
|
'python-installer'
|
||||||
|
'python-setuptools'
|
||||||
|
'python-wheel'
|
||||||
|
)
|
||||||
|
source=(https://github.com/Ousret/charset_normalizer/archive/${pkgver}/charset_normalizer-${pkgver}.tar.gz)
|
||||||
|
sha256sums=(e8dfa606a7c3f4d4540e7f648a602338323ee0f5e458043accf59b4a0493783f)
|
||||||
|
|
||||||
build() {
|
build() {
|
||||||
cd ${pkgname#*-}-${pkgver}
|
cd charset_normalizer-${pkgver}
|
||||||
|
|
||||||
python3 setup.py build
|
python3 -m build --wheel --skip-dependency-check --no-isolation
|
||||||
}
|
}
|
||||||
|
|
||||||
package() {
|
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
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user