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

Evangelos Foutras foutrelis at archlinux.org
Sat Dec 24 11:13:02 UTC 2016


    Date: Saturday, December 24, 2016 @ 11:13:01
  Author: foutrelis
Revision: 201401

archrelease: copy trunk to community-staging-any

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

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

Copied: python-cram/repos/community-staging-any/PKGBUILD (from rev 201400, python-cram/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD	                        (rev 0)
+++ community-staging-any/PKGBUILD	2016-12-24 11:13:01 UTC (rev 201401)
@@ -0,0 +1,52 @@
+# $Id$
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+# Contributor: Daniel Wallace <danielwallace at gtmanfred dot com>
+# Contributor: Thomas S Hatch <thatch45 at gmail.com>
+
+pkgbase=python-cram
+pkgname=('python-cram' 'python2-cram')
+pkgver=0.7
+pkgrel=2
+pkgdesc='Functional tests for command line applications'
+arch=('any')
+url='https://bitheap.org/cram/'
+license=('GPL')
+makedepends=('python' 'python2' 'git')
+source=("https://bitheap.org/cram/cram-$pkgver.tar.gz")
+md5sums=('2ea37ada5190526b9bcaac5e4099221c')
+
+prepare() {
+  cp -a cram-$pkgver{,-py2}
+}
+
+build() {
+  cd "$srcdir"/cram-$pkgver
+  python setup.py build
+
+  cd "$srcdir"/cram-$pkgver-py2
+  python2 setup.py build
+}
+
+check() {
+  cd "$srcdir"/cram-$pkgver
+  PYTHONPATH="$PWD/build/lib:$PYTHONPATH" python scripts/cram tests
+
+  cd "$srcdir"/cram-$pkgver-py2
+  PYTHONPATH="$PWD/build/lib:$PYTHONPATH" python2 scripts/cram tests
+}
+
+package_python-cram() {
+  depends=('python')
+
+  cd cram-$pkgver
+  python setup.py install --root="$pkgdir" -O1
+}
+
+package_python2-cram() {
+  depends=('python2')
+
+  cd cram-$pkgver-py2
+  python2 setup.py install --root="$pkgdir" -O1
+
+  mv "$pkgdir"/usr/bin/cram{,2}
+}



More information about the arch-commits mailing list