[arch-commits] Commit in python-chardet/trunk (PKGBUILD)
Felix Yan
felixonmars at archlinux.org
Fri May 12 04:17:20 UTC 2017
Date: Friday, May 12, 2017 @ 04:17:19
Author: felixonmars
Revision: 295855
upgpkg: python-chardet 3.0.2-1
Modified:
python-chardet/trunk/PKGBUILD
----------+
PKGBUILD | 20 ++++++++++----------
1 file changed, 10 insertions(+), 10 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2017-05-12 04:12:24 UTC (rev 295854)
+++ PKGBUILD 2017-05-12 04:17:19 UTC (rev 295855)
@@ -5,17 +5,17 @@
pkgbase=python-chardet
pkgname=('python-chardet' 'python2-chardet')
-pkgver=2.3.0
-pkgrel=4
+pkgver=3.0.2
+pkgrel=1
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')
+source=("https://pypi.io/packages/source/c/chardet/chardet-${pkgver}.tar.gz")
+md5sums=('96e364abdbde20b5f6dbbe2ad9d54d04')
prepare() {
- cp -a chardet-${pkgver} python2-chardet-${pkgver}
+ cp -a chardet-$pkgver{,-py2}
}
package_python-chardet() {
@@ -22,8 +22,8 @@
depends=('python-setuptools')
pkgdesc="Python3 module for character encoding auto-detection"
- cd chardet-${pkgver}
- python setup.py install --root="${pkgdir}" --optimize=1
+ cd chardet-$pkgver
+ python setup.py install --root="$pkgdir" --optimize=1
}
package_python2-chardet() {
@@ -30,9 +30,9 @@
depends=('python2-setuptools')
pkgdesc="Python2 module for character encoding auto-detection"
- cd python2-chardet-${pkgver}
- python2 setup.py install --root="${pkgdir}" --optimize=1
+ 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" "$pkgdir/usr/bin/chardetect-py2"
+ mv "$pkgdir"/usr/bin/chardetect{,-py2}
}
More information about the arch-commits
mailing list