[arch-commits] Commit in python-mock/repos (2 files)
Felix Yan
fyan at archlinux.org
Sat Sep 19 09:27:07 UTC 2015
Date: Saturday, September 19, 2015 @ 11:27:06
Author: fyan
Revision: 140707
archrelease: copy trunk to community-staging-any
Added:
python-mock/repos/community-staging-any/
python-mock/repos/community-staging-any/PKGBUILD
(from rev 140706, python-mock/trunk/PKGBUILD)
----------+
PKGBUILD | 40 ++++++++++++++++++++++++++++++++++++++++
1 file changed, 40 insertions(+)
Copied: python-mock/repos/community-staging-any/PKGBUILD (from rev 140706, python-mock/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD (rev 0)
+++ community-staging-any/PKGBUILD 2015-09-19 09:27:06 UTC (rev 140707)
@@ -0,0 +1,40 @@
+# $Id$
+# Maintainer: jelle van der Waa <jelle at vdwaa.nl>
+# Contributor: Felix Kaiser <felix.kaiser at fxkr.net>
+
+pkgbase=python-mock
+pkgname=(python2-mock python-mock)
+pkgver=1.0.1
+pkgrel=4
+pkgdesc='Mocking and Patching Library for Testing'
+url='http://www.voidspace.org.uk/python/mock/'
+makedepends=('python2' 'python')
+license=('BSD')
+arch=('any')
+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 "$srcdir/mock-$pkgver"
+ python3 setup.py build
+
+ cd "$srcdir/mock2-$pkgver"
+ python2 setup.py build
+}
+
+package_python-mock() {
+depends=('python')
+ cd "$srcdir/mock-$pkgver"
+ python3 setup.py install --optimize=1 --root="$pkgdir"
+ install -Dm644 LICENSE.txt "${pkgdir}"/usr/share/licenses/${pkgname}/LICENSE
+}
+
+package_python2-mock() {
+depends=('python2')
+ cd "$srcdir/mock2-$pkgver"
+ python2 setup.py install --optimize=1 --root="$pkgdir"
+ install -Dm644 LICENSE.txt "${pkgdir}"/usr/share/licenses/${pkgname}/LICENSE
+}
More information about the arch-commits
mailing list