[arch-commits] Commit in python-msgpack/repos (4 files)
Sébastien Luttringer
seblu at nymeria.archlinux.org
Sat Feb 8 01:36:52 UTC 2014
Date: Saturday, February 8, 2014 @ 02:36:52
Author: seblu
Revision: 105438
archrelease: copy trunk to community-i686, community-x86_64
Added:
python-msgpack/repos/community-i686/
python-msgpack/repos/community-i686/PKGBUILD
(from rev 105437, python-msgpack/trunk/PKGBUILD)
python-msgpack/repos/community-x86_64/
python-msgpack/repos/community-x86_64/PKGBUILD
(from rev 105437, python-msgpack/trunk/PKGBUILD)
---------------------------+
community-i686/PKGBUILD | 50 ++++++++++++++++++++++++++++++++++++++++++++
community-x86_64/PKGBUILD | 50 ++++++++++++++++++++++++++++++++++++++++++++
2 files changed, 100 insertions(+)
Copied: python-msgpack/repos/community-i686/PKGBUILD (from rev 105437, python-msgpack/trunk/PKGBUILD)
===================================================================
--- community-i686/PKGBUILD (rev 0)
+++ community-i686/PKGBUILD 2014-02-08 01:36:52 UTC (rev 105438)
@@ -0,0 +1,50 @@
+# $Id$
+# Maintainer: Sébastien "Seblu" Luttringer
+
+pkgbase=python-msgpack
+pkgname=('python-msgpack' 'python2-msgpack')
+pkgver=0.4.0
+pkgrel=1
+arch=('i686' 'x86_64')
+url='https://github.com/msgpack/msgpack-python'
+license=('Apache')
+makedepends=('cython' 'cython2' 'python-distribute' 'python2-distribute')
+checkdepends=('python-pytest' 'python2-pytest' 'python-six' 'python2-six')
+source=("http://pypi.python.org/packages/source/m/msgpack-python/msgpack-python-$pkgver.tar.gz")
+md5sums=('8b9ce43619fd1428bf7baddf57e38d1a')
+
+build() {
+ cd msgpack-python-$pkgver
+ python setup.py build --build-lib=build/python
+ python2 setup.py build --build-lib=build/python2
+ find build/python2 -type f -exec \
+ sed -i '1s,^#! \?/usr/bin/\(env \|\)python$,#!/usr/bin/python2,' {} \;
+}
+
+check() {
+ cd msgpack-python-$pkgver
+ msg2 'python'
+ PYTHONPATH=$PWD/build/python py.test test
+ msg2 'python2'
+ PYTHONPATH=$PWD/build/python2 py.test2 test
+}
+
+package_python-msgpack() {
+ pkgdesc='MessagePack serializer implementation for Python'
+ depends=('python')
+
+ cd msgpack-python-$pkgver
+ python setup.py build --build-lib=build/python \
+ install --root="$pkgdir" --optimize=1
+}
+
+package_python2-msgpack() {
+ pkgdesc='MessagePack serializer implementation for Python2'
+ depends=('python2')
+
+ cd msgpack-python-$pkgver
+ python2 setup.py build --build-lib=build/python2 \
+ install --root="$pkgdir" --optimize=1
+}
+
+# vim:set ts=2 sw=2 et:
Copied: python-msgpack/repos/community-x86_64/PKGBUILD (from rev 105437, python-msgpack/trunk/PKGBUILD)
===================================================================
--- community-x86_64/PKGBUILD (rev 0)
+++ community-x86_64/PKGBUILD 2014-02-08 01:36:52 UTC (rev 105438)
@@ -0,0 +1,50 @@
+# $Id$
+# Maintainer: Sébastien "Seblu" Luttringer
+
+pkgbase=python-msgpack
+pkgname=('python-msgpack' 'python2-msgpack')
+pkgver=0.4.0
+pkgrel=1
+arch=('i686' 'x86_64')
+url='https://github.com/msgpack/msgpack-python'
+license=('Apache')
+makedepends=('cython' 'cython2' 'python-distribute' 'python2-distribute')
+checkdepends=('python-pytest' 'python2-pytest' 'python-six' 'python2-six')
+source=("http://pypi.python.org/packages/source/m/msgpack-python/msgpack-python-$pkgver.tar.gz")
+md5sums=('8b9ce43619fd1428bf7baddf57e38d1a')
+
+build() {
+ cd msgpack-python-$pkgver
+ python setup.py build --build-lib=build/python
+ python2 setup.py build --build-lib=build/python2
+ find build/python2 -type f -exec \
+ sed -i '1s,^#! \?/usr/bin/\(env \|\)python$,#!/usr/bin/python2,' {} \;
+}
+
+check() {
+ cd msgpack-python-$pkgver
+ msg2 'python'
+ PYTHONPATH=$PWD/build/python py.test test
+ msg2 'python2'
+ PYTHONPATH=$PWD/build/python2 py.test2 test
+}
+
+package_python-msgpack() {
+ pkgdesc='MessagePack serializer implementation for Python'
+ depends=('python')
+
+ cd msgpack-python-$pkgver
+ python setup.py build --build-lib=build/python \
+ install --root="$pkgdir" --optimize=1
+}
+
+package_python2-msgpack() {
+ pkgdesc='MessagePack serializer implementation for Python2'
+ depends=('python2')
+
+ cd msgpack-python-$pkgver
+ python2 setup.py build --build-lib=build/python2 \
+ install --root="$pkgdir" --optimize=1
+}
+
+# vim:set ts=2 sw=2 et:
More information about the arch-commits
mailing list