🔒 Repository is read-only – file editing is disabled.
12345678910111213141516171819202122232425262728293031323334
pkgname: python-charset-normalizer
pkgver: '3.5.2'
pkgrel: '1'
pkgdesc: The charset-normalizer library helps with reading text from an unknown character encoding
url: 'https://github.com/ousret/charset_normalizer'
arch: x86_64
license:
- MIT
depends: []
makedepends:
- python-setuptools
source:
- 'https://github.com/Ousret/charset_normalizer/archive/${pkgver}/charset-normalizer-${pkgver}.tar.gz'
sha256sums:
- f57ada905c04f07b75cb64b3562916ad0506ce000eb9c61dfb991a718a33887c
build: |
# pagbuild sam tworzy alias charset-normalizer-<ver> -> charset_normalizer-<ver>
cd charset-normalizer-${pkgver}
pip3 wheel -w dist \
--no-build-isolation \
--no-deps $PWD
pip3 install --no-index \
--find-links dist \
--no-cache-dir \
--no-user \
--root=${PKGDIR} \
charset-normalizer
find ${PKGDIR} -type d -name vendor -o -name tests |xargs rm -rf
install -Dm644 LICENSE ${PKGDIR}/usr/share/licenses/${pkgname}/LICENSE
package: |
true