[arch-commits] Commit in (4 files)

Jelle van der Waa jelle at nymeria.archlinux.org
Thu Nov 14 21:10:09 UTC 2013


    Date: Thursday, November 14, 2013 @ 22:10:09
  Author: jelle
Revision: 101010

initial commit, needed for similiar python tests

Added:
  python-mock/
  python-mock/repos/
  python-mock/trunk/
  python-mock/trunk/PKGBUILD

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

Added: python-mock/trunk/PKGBUILD
===================================================================
--- python-mock/trunk/PKGBUILD	                        (rev 0)
+++ python-mock/trunk/PKGBUILD	2013-11-14 21:10:09 UTC (rev 101010)
@@ -0,0 +1,36 @@
+# Contributor: Felix Kaiser <felix.kaiser at fxkr.net>
+
+pkgbase=python-mock
+pkgname=(python2-mock python-mock)
+pkgver=1.0.1
+pkgrel=1
+pkgdesc="A Python Mocking and Patching Library for Testing"
+url='http://www.voidspace.org.uk/python/mock/'
+makedepends=('python2' 'python')
+license=('BSD')
+arch=('i686' 'x86_64')
+source=("http://pypi.python.org/packages/source/m/mock/mock-$pkgver.tar.gz")
+md5sums=('c3971991738caa55ec7c356bbc154ee2')
+
+build() {
+  cd "$srcdir"
+  cp -rf "mock-$pkgver" "mock2-$pkgver"
+
+  cd "mock-$pkgver"
+  python3 setup.py build
+
+  cd "mock2-$pkgver"
+  python2 setup.py build
+}
+
+package_python-mock() {
+depends=('python')
+  cd "$srcdir/mock-$pkgver"
+  python3 install --optimize=1 --root="$pkgdir"
+}
+
+package_python2-mock() {
+depends=('python2')
+  cd "$srcdir/mock2-$pkgver"
+  python2 install --optimize=1 --root="$pkgdir"
+}


Property changes on: python-mock/trunk/PKGBUILD
___________________________________________________________________
Added: svn:keywords
## -0,0 +1 ##
+Id
\ No newline at end of property



More information about the arch-commits mailing list