1 # Maintainer: Maxime Gauduin <alucryd@archlinux.org>
2 # Contributor: lilydjwg <lilydjwg@gmail.com>
3 # Contributor: lilac <lilac@build.archlinuxcn.org>
4 # Contributor: Dimitris Kiziridis <ragouel@outlook.com>
6 pkgname=python-charset-normalizer
9 pkgdesc='Encoding and language detection alternative to chardet'
11 url=https://github.com/ousret/charset_normalizer
22 _tag=db9af4323fee938d6bdfed3aae20339da26ead11
23 source=(git+https://github.com/Ousret/charset_normalizer.git#tag=${_tag})
28 _version=$(git describe --tags)
29 sed "s/2.1.0/${_version}/" -i charset_normalizer/version.py
45 python setup.py install --root=$pkgdir --optimize=1 --skip-build
46 install -Dm 644 LICENSE -t "${pkgdir}"/usr/share/licenses/python-charset-normalizer/