[arch-commits] Commit in python-tarantool/repos/community-any (PKGBUILD PKGBUILD)

Evangelos Foutras foutrelis at archlinux.org
Wed Nov 18 10:26:38 UTC 2020


    Date: Wednesday, November 18, 2020 @ 10:26:38
  Author: foutrelis
Revision: 757108

archrelease: copy trunk to community-any

Added:
  python-tarantool/repos/community-any/PKGBUILD
    (from rev 757107, python-tarantool/trunk/PKGBUILD)
Deleted:
  python-tarantool/repos/community-any/PKGBUILD

----------+
 PKGBUILD |  110 ++++++++++++++++++++++++++++++++-----------------------------
 1 file changed, 59 insertions(+), 51 deletions(-)

Deleted: PKGBUILD
===================================================================
--- PKGBUILD	2020-11-18 10:26:28 UTC (rev 757107)
+++ PKGBUILD	2020-11-18 10:26:38 UTC (rev 757108)
@@ -1,51 +0,0 @@
-# Maintainer: Felix Yan <felixonmars at archlinux.org>
-# Contributor: Anatol Pomozov
-
-pkgbase=python-tarantool
-pkgname=(python-tarantool python2-tarantool)
-pkgver=0.6.6
-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')
-checkdepends=('tarantool')
-source=("https://pypi.io/packages/source/t/tarantool/tarantool-$pkgver.tar.gz")
-sha512sums=('8b1776a1d4df050b7cd831f81787972de3b4a20a9d1f2883f6b969fad4a354896f088328806134d119f8120f252140333fcb9d555500bc814fbd3aea215d5f6b')
-
-prepare() {
-  sed -i 's/msgpack-python/msgpack/g' tarantool-$pkgver/setup.py
-  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
-  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 tarantool-$pkgver
-  python setup.py install --root="$pkgdir" --optimize=1
-}
-
-package_python2-tarantool() {
-  depends=('python2' 'python2-msgpack' 'python2-yaml' 'python2-six')
-
-  cd tarantool-$pkgver-py2
-  python2 setup.py install --root="$pkgdir" --optimize=1
-}

Copied: python-tarantool/repos/community-any/PKGBUILD (from rev 757107, python-tarantool/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2020-11-18 10:26:38 UTC (rev 757108)
@@ -0,0 +1,59 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+# Contributor: Anatol Pomozov
+
+pkgbase=python-tarantool
+pkgname=(python-tarantool python2-tarantool)
+pkgver=0.6.6.r25.gb267643
+_commit=b267643a242e2e6abc013539395b89dd235b798f
+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' 'git')
+checkdepends=('tarantool')
+#source=("https://pypi.io/packages/source/t/tarantool/tarantool-$pkgver.tar.gz")
+source=("git+https://github.com/tarantool/tarantool-python#commit=$_commit")
+sha512sums=('SKIP')
+
+pkgver() {
+  cd tarantool-$pkgver
+  git describe | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
+}
+
+prepare() {
+  mv tarantool-python tarantool-$pkgver
+  sed -i 's/msgpack-python/msgpack/g' tarantool-$pkgver/setup.py
+  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
+  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 tarantool-$pkgver
+  python setup.py install --root="$pkgdir" --optimize=1
+}
+
+package_python2-tarantool() {
+  depends=('python2' 'python2-msgpack' 'python2-yaml' 'python2-six')
+
+  cd tarantool-$pkgver-py2
+  python2 setup.py install --root="$pkgdir" --optimize=1
+}



More information about the arch-commits mailing list