[arch-commits] Commit in python-btrees/repos (2 files)

Felix Yan felixonmars at archlinux.org
Tue Apr 24 17:19:34 UTC 2018


    Date: Tuesday, April 24, 2018 @ 17:19:33
  Author: felixonmars
Revision: 317600

archrelease: copy trunk to community-testing-x86_64

Added:
  python-btrees/repos/community-testing-x86_64/
  python-btrees/repos/community-testing-x86_64/PKGBUILD
    (from rev 317599, python-btrees/trunk/PKGBUILD)

----------+
 PKGBUILD |   53 +++++++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 53 insertions(+)

Copied: python-btrees/repos/community-testing-x86_64/PKGBUILD (from rev 317599, python-btrees/trunk/PKGBUILD)
===================================================================
--- community-testing-x86_64/PKGBUILD	                        (rev 0)
+++ community-testing-x86_64/PKGBUILD	2018-04-24 17:19:33 UTC (rev 317600)
@@ -0,0 +1,53 @@
+# $Id$
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgbase=python-btrees
+pkgname=('python-btrees' 'python2-btrees')
+pkgver=4.5.0
+pkgrel=1
+pkgdesc='A fancy and practical functional tools'
+arch=('x86_64')
+license=('ZPL')
+url='https://github.com/zopefoundation/btrees'
+makedepends=('python-setuptools' 'python2-setuptools' 'python-persistent' 'python2-persistent'
+             'python-zope-interface' 'python2-zope-interface')
+checkdepends=('python-pytest-runner' 'python2-pytest-runner' 'python-transaction'
+              'python2-transaction' 'python-zope-testrunner' 'python2-zope-testrunner')
+source=("$pkgbase-$pkgver.tar.gz::https://github.com/zopefoundation/btrees/archive/$pkgver.tar.gz")
+sha512sums=('c50e8e1d67c0bf52bc3b33fa31bc32a4ed8f7257ce211c5155f08fcbe37b93b3e2d760634176135f1114ad569d14080c38e8cc591761100efd651d3ef417efb9')
+
+prepare() {
+  cp -a BTrees-$pkgver{,-py2}
+}
+
+build() {
+  cd "$srcdir"/BTrees-$pkgver
+  python setup.py build
+
+  cd "$srcdir"/BTrees-$pkgver-py2
+  python2 setup.py build
+}
+
+check() {
+  cd "$srcdir"/BTrees-$pkgver
+  python setup.py pytest
+
+  cd "$srcdir"/BTrees-$pkgver-py2
+  python2 setup.py pytest
+}
+
+package_python-btrees() {
+  depends=('python-persistent' 'python-zope-interface')
+
+  cd BTrees-$pkgver
+  python setup.py install --root="$pkgdir" --optimize=1
+}
+
+package_python2-btrees() {
+  depends=('python2-persistent' 'python2-zope-interface')
+
+  cd BTrees-$pkgver-py2
+  python2 setup.py install --root="$pkgdir" --optimize=1
+}
+
+# vim:set ts=2 sw=2 et:



More information about the arch-commits mailing list