[arch-commits] Commit in python-chardet/repos (staging-any staging-any/PKGBUILD)

Felix Yan felixonmars at gemini.archlinux.org
Tue Nov 30 15:22:53 UTC 2021


    Date: Tuesday, November 30, 2021 @ 15:22:53
  Author: felixonmars
Revision: 429598

archrelease: copy trunk to staging-any

Added:
  python-chardet/repos/staging-any/
  python-chardet/repos/staging-any/PKGBUILD
    (from rev 429597, python-chardet/trunk/PKGBUILD)

----------+
 PKGBUILD |   31 +++++++++++++++++++++++++++++++
 1 file changed, 31 insertions(+)

Copied: python-chardet/repos/staging-any/PKGBUILD (from rev 429597, python-chardet/trunk/PKGBUILD)
===================================================================
--- staging-any/PKGBUILD	                        (rev 0)
+++ staging-any/PKGBUILD	2021-11-30 15:22:53 UTC (rev 429598)
@@ -0,0 +1,31 @@
+# Maintainer : Felix Yan <felixonmars at archlinux.org>
+# Contributor: Ionut Biru <ibiru at archlinux.org>
+# Contributor: William Rea <sillywilly at gmail.com>
+
+pkgname=python-chardet
+pkgver=4.0.0
+pkgrel=4
+arch=('any')
+url="https://github.com/chardet/chardet"
+license=('LGPL')
+depends=('python')
+pkgdesc="Python3 module for character encoding auto-detection"
+makedepends=('python-setuptools')
+checkdepends=('python-pytest')
+source=("https://pypi.io/packages/source/c/chardet/chardet-${pkgver}.tar.gz")
+sha512sums=('ebd7f420e1094445270db993f6373ffe7370419e002b0bb13299dc6c9b0f7c4e77b0f44f871fba6371e6869e7c86728514367db377e3137487a3acf50cb81e96')
+
+build() {
+   cd "$srcdir"/chardet-$pkgver
+   python setup.py build
+}
+
+check() {
+   cd "$srcdir"/chardet-$pkgver
+   python -m pytest
+}
+
+package() {
+   cd chardet-$pkgver
+   python setup.py install --root="$pkgdir" --optimize=1
+}



More information about the arch-commits mailing list