30 lines
929 B
Bash
30 lines
929 B
Bash
# 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 <future_linux@163.com>
|
|
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
|
|
}
|