[arch-commits] Commit in python-doublex-expects/repos (2 files)
Felix Yan
felixonmars at archlinux.org
Sat Dec 24 16:49:17 UTC 2016
Date: Saturday, December 24, 2016 @ 16:49:16
Author: felixonmars
Revision: 201577
archrelease: copy trunk to community-staging-any
Added:
python-doublex-expects/repos/community-staging-any/
python-doublex-expects/repos/community-staging-any/PKGBUILD
(from rev 201576, python-doublex-expects/trunk/PKGBUILD)
----------+
PKGBUILD | 50 ++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 50 insertions(+)
Copied: python-doublex-expects/repos/community-staging-any/PKGBUILD (from rev 201576, python-doublex-expects/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD (rev 0)
+++ community-staging-any/PKGBUILD 2016-12-24 16:49:16 UTC (rev 201577)
@@ -0,0 +1,50 @@
+# $Id$
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgbase=python-doublex-expects
+pkgname=('python-doublex-expects' 'python2-doublex-expects')
+pkgver=0.7.0rc2
+pkgrel=2
+pkgdesc="Expects matchers for Doublex test doubles assertions"
+arch=('any')
+license=('Apache')
+url="https://github.com/jaimegildesagredo/doublex-expects"
+makedepends=('python-setuptools' 'python2-setuptools' 'python-doublex'
+ 'python2-doublex' 'python-expects' 'python2-expects' 'git')
+checkdepends=('python-mamba' 'python2-mamba')
+source=("git+https://github.com/jaimegildesagredo/doublex-expects.git#tag=v$pkgver")
+sha512sums=('SKIP')
+
+prepare() {
+ cp -a doublex-expects{,-py2}
+}
+
+build() {
+ cd "$srcdir"/doublex-expects
+ python setup.py build
+
+ cd "$srcdir"/doublex-expects-py2
+ python2 setup.py build
+}
+
+check() {
+ cd "$srcdir"/doublex-expects
+ mamba
+
+ cd "$srcdir"/doublex-expects-py2
+ mamba2
+}
+
+package_python-doublex-expects() {
+ depends=('python-doublex' 'python-expects')
+
+ cd doublex-expects
+ python setup.py install --root="$pkgdir" --optimize=1
+}
+
+package_python2-doublex-expects() {
+ depends=('python2-doublex' 'python2-expects')
+
+ cd doublex-expects-py2
+ python2 setup.py install --root="$pkgdir" --optimize=1
+}
More information about the arch-commits
mailing list