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

Felix Yan felixonmars at archlinux.org
Fri May 12 04:17:52 UTC 2017


    Date: Friday, May 12, 2017 @ 04:17:50
  Author: felixonmars
Revision: 295856

archrelease: copy trunk to testing-any

Added:
  python-chardet/repos/testing-any/
  python-chardet/repos/testing-any/PKGBUILD
    (from rev 295855, python-chardet/trunk/PKGBUILD)

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

Copied: python-chardet/repos/testing-any/PKGBUILD (from rev 295855, python-chardet/trunk/PKGBUILD)
===================================================================
--- testing-any/PKGBUILD	                        (rev 0)
+++ testing-any/PKGBUILD	2017-05-12 04:17:50 UTC (rev 295856)
@@ -0,0 +1,38 @@
+# $Id$
+# Maintainer : Felix Yan <felixonmars at archlinux.org>
+# Contributor: Ionut Biru <ibiru at archlinux.org>
+# Contributor: William Rea <sillywilly at gmail.com>
+
+pkgbase=python-chardet
+pkgname=('python-chardet' 'python2-chardet')
+pkgver=3.0.2
+pkgrel=1
+arch=('any')
+url="https://github.com/chardet/chardet"
+license=('LGPL')
+makedepends=('python-setuptools' 'python2-setuptools')
+source=("https://pypi.io/packages/source/c/chardet/chardet-${pkgver}.tar.gz")
+md5sums=('96e364abdbde20b5f6dbbe2ad9d54d04')
+
+prepare() {
+   cp -a chardet-$pkgver{,-py2}
+}
+
+package_python-chardet() {
+   depends=('python-setuptools')
+   pkgdesc="Python3 module for character encoding auto-detection"
+
+   cd chardet-$pkgver
+   python setup.py install --root="$pkgdir" --optimize=1
+}
+
+package_python2-chardet() {
+   depends=('python2-setuptools')
+   pkgdesc="Python2 module for character encoding auto-detection"
+
+   cd chardet-$pkgver-py2
+   python2 setup.py install --root="$pkgdir" --optimize=1
+
+   # To avoid file conflict with the python3 version
+   mv "$pkgdir"/usr/bin/chardetect{,-py2}
+}



More information about the arch-commits mailing list