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

Felix Yan felixonmars at archlinux.org
Sat Dec 24 16:47:24 UTC 2016


    Date: Saturday, December 24, 2016 @ 16:47:23
  Author: felixonmars
Revision: 201574

archrelease: copy trunk to community-staging-any

Added:
  python-expects/repos/community-staging-any/
  python-expects/repos/community-staging-any/PKGBUILD
    (from rev 201573, python-expects/trunk/PKGBUILD)

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

Copied: python-expects/repos/community-staging-any/PKGBUILD (from rev 201573, python-expects/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD	                        (rev 0)
+++ community-staging-any/PKGBUILD	2016-12-24 16:47:23 UTC (rev 201574)
@@ -0,0 +1,51 @@
+# $Id$
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgbase=python-expects
+pkgname=('python-expects' 'python2-expects')
+pkgver=0.8.0
+pkgrel=2
+pkgdesc="Expressive and extensible TDD/BDD assertion library for Python"
+arch=('any')
+license=('Apache')
+url="https://github.com/jaimegildesagredo/expects"
+makedepends=('python-setuptools' 'python2-setuptools' 'git')
+checkdepends=('python-mamba' 'python2-mamba')
+source=("git+https://github.com/jaimegildesagredo/expects.git#tag=v$pkgver")
+sha512sums=('SKIP')
+
+prepare() {
+  cp -a expects{,-py2}
+}
+
+build() {
+  cd "$srcdir"/expects
+  python setup.py build
+
+  cd "$srcdir"/expects-py2
+  python2 setup.py build
+}
+
+check() {
+  cd "$srcdir"/expects
+  mamba
+
+  cd "$srcdir"/expects-py2
+  mamba2
+}
+
+package_python-expects() {
+  depends=('python')
+
+  cd expects
+  python setup.py install --root="${pkgdir}" --optimize=1
+  install -D -m644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
+}
+
+package_python2-expects() {
+  depends=('python2')
+
+  cd expects-py2
+  python2 setup.py install --root="${pkgdir}" --optimize=1
+  install -D -m644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
+}



More information about the arch-commits mailing list