[arch-commits] Commit in python-tarantool/repos (community-any community-any/PKGBUILD)
Anatol Pomozov
anatolik at archlinux.org
Tue Jan 5 18:01:01 UTC 2016
Date: Tuesday, January 5, 2016 @ 19:01:00
Author: anatolik
Revision: 155536
archrelease: copy trunk to community-any
Added:
python-tarantool/repos/community-any/
python-tarantool/repos/community-any/PKGBUILD
(from rev 155535, python-tarantool/trunk/PKGBUILD)
----------+
PKGBUILD | 49 +++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 49 insertions(+)
Copied: python-tarantool/repos/community-any/PKGBUILD (from rev 155535, python-tarantool/trunk/PKGBUILD)
===================================================================
--- community-any/PKGBUILD (rev 0)
+++ community-any/PKGBUILD 2016-01-05 18:01:00 UTC (rev 155536)
@@ -0,0 +1,49 @@
+# $Id$
+# Maintainer: Anatol Pomozov
+
+pkgbase=python-tarantool
+pkgname=(python-tarantool python2-tarantool)
+pkgver=0.5.1
+pkgrel=1
+pkgdesc='Python client library for Tarantool 1.6 Database'
+arch=(any)
+url='https://github.com/tarantool/tarantool-python'
+license=(BSD)
+makedepends=(python-setuptools python2-setuptools python-msgpack python2-msgpack python-yaml python2-yaml python-six python2-six)
+source=(https://pypi.python.org/packages/source/t/tarantool/tarantool-$pkgver.tar.gz)
+sha1sums=('9a8e4a23ca8bd2ad101d1e641752a4851655c725')
+
+prepare() {
+ cp -a tarantool-$pkgver{,-py2}
+}
+
+build() {
+ cd "$srcdir/tarantool-$pkgver"
+ python setup.py build
+
+ cd "$srcdir/tarantool-$pkgver-py2"
+ python2 setup.py build
+}
+
+check() {
+ cd "$srcdir/tarantool-$pkgver"
+ # currently tests fail for python3
+ #python setup.py test
+
+ cd "$srcdir/tarantool-$pkgver-py2"
+ python2 setup.py test
+}
+
+package_python-tarantool() {
+ depends=(python python-msgpack python-yaml python-six)
+
+ cd "$srcdir/tarantool-$pkgver"
+ python setup.py install --root="$pkgdir" --optimize=1
+}
+
+package_python2-tarantool() {
+ depends=(python2 python2-msgpack python2-yaml python2-six)
+
+ cd "$srcdir/tarantool-$pkgver-py2"
+ python2 setup.py install --root="$pkgdir" --optimize=1
+}
More information about the arch-commits
mailing list