[arch-commits] Commit in python-chardet/repos (staging-any staging-any/PKGBUILD)
Felix Yan
fyan at archlinux.org
Sat Sep 19 13:52:47 UTC 2015
Date: Saturday, September 19, 2015 @ 15:52:47
Author: fyan
Revision: 246630
archrelease: copy trunk to staging-any
Added:
python-chardet/repos/staging-any/
python-chardet/repos/staging-any/PKGBUILD
(from rev 246629, python-chardet/trunk/PKGBUILD)
----------+
PKGBUILD | 38 ++++++++++++++++++++++++++++++++++++++
1 file changed, 38 insertions(+)
Copied: python-chardet/repos/staging-any/PKGBUILD (from rev 246629, python-chardet/trunk/PKGBUILD)
===================================================================
--- staging-any/PKGBUILD (rev 0)
+++ staging-any/PKGBUILD 2015-09-19 13:52:47 UTC (rev 246630)
@@ -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=2.3.0
+pkgrel=2
+arch=('any')
+url="https://github.com/chardet/chardet"
+license=('LGPL')
+makedepends=('python-setuptools' 'python2-setuptools')
+source=("https://pypi.python.org/packages/source/c/chardet/chardet-${pkgver}.tar.gz")
+md5sums=('25274d664ccb5130adae08047416e1a8')
+
+prepare() {
+ cp -a chardet-${pkgver} python2-chardet-${pkgver}
+}
+
+package_python-chardet() {
+ depends=('python')
+ pkgdesc="Python3 module for character encoding auto-detection"
+
+ cd chardet-${pkgver}
+ python setup.py install --root="${pkgdir}" --optimize=1
+}
+
+package_python2-chardet() {
+ depends=('python2')
+ pkgdesc="Python2 module for character encoding auto-detection"
+
+ cd python2-chardet-${pkgver}
+ python2 setup.py install --root="${pkgdir}" --optimize=1
+
+ # To avoid file conflict with the python3 version
+ mv "$pkgdir/usr/bin/chardetect" "$pkgdir/usr/bin/chardetect-py2"
+}
More information about the arch-commits
mailing list