Date: Monday, May 29, 2017 @ 14:51:21 Author: felixonmars Revision: 296731
archrelease: copy trunk to extra-any Added: python-chardet/repos/extra-any/PKGBUILD (from rev 296730, python-chardet/trunk/PKGBUILD) Deleted: python-chardet/repos/extra-any/PKGBUILD ----------+ PKGBUILD | 76 ++++++++++++++++++++++++++++++------------------------------- 1 file changed, 38 insertions(+), 38 deletions(-) Deleted: PKGBUILD =================================================================== --- PKGBUILD 2017-05-29 14:51:01 UTC (rev 296730) +++ PKGBUILD 2017-05-29 14:51:21 UTC (rev 296731) @@ -1,38 +0,0 @@ -# $Id$ -# Maintainer : Felix Yan <felixonm...@archlinux.org> -# Contributor: Ionut Biru <ib...@archlinux.org> -# Contributor: William Rea <sillywi...@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} -} Copied: python-chardet/repos/extra-any/PKGBUILD (from rev 296730, python-chardet/trunk/PKGBUILD) =================================================================== --- PKGBUILD (rev 0) +++ PKGBUILD 2017-05-29 14:51:21 UTC (rev 296731) @@ -0,0 +1,38 @@ +# $Id$ +# Maintainer : Felix Yan <felixonm...@archlinux.org> +# Contributor: Ionut Biru <ib...@archlinux.org> +# Contributor: William Rea <sillywi...@gmail.com> + +pkgbase=python-chardet +pkgname=('python-chardet' 'python2-chardet') +pkgver=3.0.3 +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") +sha512sums=('cd9c24dc451908a91e814dd935641a53def46578341bde6a2635bf4fe3c1581340914a775c358e39a8b17259c5231e573a04e9e9c1be14331c6c765ccf35c723') + +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} +}