[arch-commits] Commit in python-cchardet/repos (4 files)
Felix Yan
felixonmars at archlinux.org
Sun Dec 25 18:58:47 UTC 2016
Date: Sunday, December 25, 2016 @ 18:58:47
Author: felixonmars
Revision: 202314
archrelease: copy trunk to community-staging-i686, community-staging-x86_64
Added:
python-cchardet/repos/community-staging-i686/
python-cchardet/repos/community-staging-i686/PKGBUILD
(from rev 202313, python-cchardet/trunk/PKGBUILD)
python-cchardet/repos/community-staging-x86_64/
python-cchardet/repos/community-staging-x86_64/PKGBUILD
(from rev 202313, python-cchardet/trunk/PKGBUILD)
-----------------------------------+
community-staging-i686/PKGBUILD | 42 ++++++++++++++++++++++++++++++++++++
community-staging-x86_64/PKGBUILD | 42 ++++++++++++++++++++++++++++++++++++
2 files changed, 84 insertions(+)
Copied: python-cchardet/repos/community-staging-i686/PKGBUILD (from rev 202313, python-cchardet/trunk/PKGBUILD)
===================================================================
--- community-staging-i686/PKGBUILD (rev 0)
+++ community-staging-i686/PKGBUILD 2016-12-25 18:58:47 UTC (rev 202314)
@@ -0,0 +1,42 @@
+# $Id$
+# Maintainer: Massimiliano Torromeo <massimiliano.torromeo at gmail.com>
+
+pkgname=python-cchardet
+pkgname=(python-cchardet python2-cchardet)
+pkgver=1.1.1
+pkgrel=2
+pkgdesc="Universal encoding detector faster than chardet."
+url="http://pypi.python.org/pypi/cchardet/"
+makedepends=('cython' 'cython2' 'python-setuptools' 'python2-setuptools')
+license=('MIT')
+arch=('i686' 'x86_64')
+source=(https://files.pythonhosted.org/packages/source/c/cchardet/cchardet-$pkgver.tar.gz)
+sha256sums=('f2f928126e2a6f45b2e665a2541ca09a94ed01cdc3ce01809c97f26a1dbdbc99')
+
+build() {
+ cd "$srcdir/cchardet-$pkgver"
+
+ rm -rf ../buildpy3; mkdir ../buildpy3
+ python setup.py build -b ../buildpy3
+
+ rm -rf ../buildpy2; mkdir ../buildpy2
+ python2 setup.py build -b ../buildpy2
+ find ../buildpy2 -name \*.py -exec sed -r 's|^#!(.*)python$|#!\1python2|' -i {} +
+}
+
+package_python-cchardet() {
+ depends=(python)
+
+ cd "$srcdir/cchardet-$pkgver"
+ rm -rf build; ln -s ../buildpy3 build
+ python setup.py install --skip-build -O1 --root="$pkgdir"
+}
+
+package_python2-cchardet() {
+ depends=(python2)
+
+ cd "$srcdir/cchardet-$pkgver"
+ rm -rf build; ln -s ../buildpy2 build
+ python2 setup.py install --skip-build -O1 --root="$pkgdir"
+}
+
Copied: python-cchardet/repos/community-staging-x86_64/PKGBUILD (from rev 202313, python-cchardet/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD (rev 0)
+++ community-staging-x86_64/PKGBUILD 2016-12-25 18:58:47 UTC (rev 202314)
@@ -0,0 +1,42 @@
+# $Id$
+# Maintainer: Massimiliano Torromeo <massimiliano.torromeo at gmail.com>
+
+pkgname=python-cchardet
+pkgname=(python-cchardet python2-cchardet)
+pkgver=1.1.1
+pkgrel=2
+pkgdesc="Universal encoding detector faster than chardet."
+url="http://pypi.python.org/pypi/cchardet/"
+makedepends=('cython' 'cython2' 'python-setuptools' 'python2-setuptools')
+license=('MIT')
+arch=('i686' 'x86_64')
+source=(https://files.pythonhosted.org/packages/source/c/cchardet/cchardet-$pkgver.tar.gz)
+sha256sums=('f2f928126e2a6f45b2e665a2541ca09a94ed01cdc3ce01809c97f26a1dbdbc99')
+
+build() {
+ cd "$srcdir/cchardet-$pkgver"
+
+ rm -rf ../buildpy3; mkdir ../buildpy3
+ python setup.py build -b ../buildpy3
+
+ rm -rf ../buildpy2; mkdir ../buildpy2
+ python2 setup.py build -b ../buildpy2
+ find ../buildpy2 -name \*.py -exec sed -r 's|^#!(.*)python$|#!\1python2|' -i {} +
+}
+
+package_python-cchardet() {
+ depends=(python)
+
+ cd "$srcdir/cchardet-$pkgver"
+ rm -rf build; ln -s ../buildpy3 build
+ python setup.py install --skip-build -O1 --root="$pkgdir"
+}
+
+package_python2-cchardet() {
+ depends=(python2)
+
+ cd "$srcdir/cchardet-$pkgver"
+ rm -rf build; ln -s ../buildpy2 build
+ python2 setup.py install --skip-build -O1 --root="$pkgdir"
+}
+
More information about the arch-commits
mailing list