[arch-commits] Commit in python-cchardet/repos (4 files)

Ángel Velásquez angvp at nymeria.archlinux.org
Mon Aug 19 09:42:59 UTC 2013


    Date: Monday, August 19, 2013 @ 11:42:59
  Author: angvp
Revision: 95992

archrelease: copy trunk to community-testing-i686, community-testing-x86_64

Added:
  python-cchardet/repos/community-testing-i686/
  python-cchardet/repos/community-testing-i686/PKGBUILD
    (from rev 95991, python-cchardet/trunk/PKGBUILD)
  python-cchardet/repos/community-testing-x86_64/
  python-cchardet/repos/community-testing-x86_64/PKGBUILD
    (from rev 95991, python-cchardet/trunk/PKGBUILD)

-----------------------------------+
 community-testing-i686/PKGBUILD   |   51 ++++++++++++++++++++++++++++++++++++
 community-testing-x86_64/PKGBUILD |   51 ++++++++++++++++++++++++++++++++++++
 2 files changed, 102 insertions(+)

Copied: python-cchardet/repos/community-testing-i686/PKGBUILD (from rev 95991, python-cchardet/trunk/PKGBUILD)
===================================================================
--- community-testing-i686/PKGBUILD	                        (rev 0)
+++ community-testing-i686/PKGBUILD	2013-08-19 09:42:59 UTC (rev 95992)
@@ -0,0 +1,51 @@
+# $Id$
+# Maintainer: Massimiliano Torromeo <massimiliano.torromeo at gmail.com>
+
+pkgname=python-cchardet
+pkgname=(python-cchardet python2-cchardet)
+pkgver=0.3.5
+pkgrel=1
+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=(http://pypi.python.org/packages/source/c/cchardet/cchardet-$pkgver.tar.gz)
+sha256sums=('51094c573d248a4908a968e75edd05bab136f10fcc8a70b87c8243b6d45731f8')
+
+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() {
+    cd "$srcdir/cchardet-$pkgver"
+    python setup.py install --root="$pkgdir"
+	install -m0644 -D "README.rst" "$pkgdir/usr/share/licenses/$pkgname/README.rst"
+}
+
+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"
+	install -m0644 -D "README.rst" "$pkgdir/usr/share/licenses/$pkgname/README.rst"
+}
+
+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"
+	install -m0644 -D "README.rst" "$pkgdir/usr/share/licenses/$pkgname/README.rst"
+}
+

Copied: python-cchardet/repos/community-testing-x86_64/PKGBUILD (from rev 95991, python-cchardet/trunk/PKGBUILD)
===================================================================
--- community-testing-x86_64/PKGBUILD	                        (rev 0)
+++ community-testing-x86_64/PKGBUILD	2013-08-19 09:42:59 UTC (rev 95992)
@@ -0,0 +1,51 @@
+# $Id$
+# Maintainer: Massimiliano Torromeo <massimiliano.torromeo at gmail.com>
+
+pkgname=python-cchardet
+pkgname=(python-cchardet python2-cchardet)
+pkgver=0.3.5
+pkgrel=1
+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=(http://pypi.python.org/packages/source/c/cchardet/cchardet-$pkgver.tar.gz)
+sha256sums=('51094c573d248a4908a968e75edd05bab136f10fcc8a70b87c8243b6d45731f8')
+
+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() {
+    cd "$srcdir/cchardet-$pkgver"
+    python setup.py install --root="$pkgdir"
+	install -m0644 -D "README.rst" "$pkgdir/usr/share/licenses/$pkgname/README.rst"
+}
+
+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"
+	install -m0644 -D "README.rst" "$pkgdir/usr/share/licenses/$pkgname/README.rst"
+}
+
+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"
+	install -m0644 -D "README.rst" "$pkgdir/usr/share/licenses/$pkgname/README.rst"
+}
+




More information about the arch-commits mailing list