From c8317f1df16099a83d53fdd46d5d07e30eadc6b0 Mon Sep 17 00:00:00 2001 From: xhaa123 Date: Mon, 29 Apr 2024 11:28:24 +0800 Subject: [PATCH] python-charset-normalizer 3.3.2-1 --- PKGBUILD | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 PKGBUILD diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 0000000..8651b69 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,29 @@ +# This is an example PKGBUILD file. Use this as a start to creating your own, +# and remove these comments. For more information, see 'man PKGBUILD'. +# NOTE: Please fill out the license field for your package! If it is unknown, +# then please put 'unknown'. + +# Maintainer: Future Linux Team +pkgname=python-charset-normalizer +pkgver=3.3.2 +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) + +build() { + cd ${pkgname#*-}-${pkgver} + + python3 setup.py build +} + +package() { + cd ${pkgname#*-}-${pkgver} + + python3 setup.py install --root=${pkgdir} --optimize=1 --skip-build +}