diff options
author | Britney Fransen <brfransen@gmail.com> | 2014-10-27 20:28:27 (GMT) |
---|---|---|
committer | Britney Fransen <brfransen@gmail.com> | 2014-10-27 20:28:27 (GMT) |
commit | f7b823f55a80b1498c30e9f3a47692a2329c4f09 (patch) | |
tree | 6de557714e6336282fbc0ab16c6578386dfc6654 /abs/core/python_modules/python-mock/PKGBUILD | |
parent | 4c2a2e3504f472628285a989c7c9a76be6855f54 (diff) | |
parent | 01c1a60f3b7f93b3ed7404196c2cf798c4d8c674 (diff) | |
download | linhes_pkgbuild-f7b823f55a80b1498c30e9f3a47692a2329c4f09.zip linhes_pkgbuild-f7b823f55a80b1498c30e9f3a47692a2329c4f09.tar.gz linhes_pkgbuild-f7b823f55a80b1498c30e9f3a47692a2329c4f09.tar.bz2 |
Merge branch 'testing'
Diffstat (limited to 'abs/core/python_modules/python-mock/PKGBUILD')
-rw-r--r-- | abs/core/python_modules/python-mock/PKGBUILD | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/abs/core/python_modules/python-mock/PKGBUILD b/abs/core/python_modules/python-mock/PKGBUILD new file mode 100644 index 0000000..63fd848 --- /dev/null +++ b/abs/core/python_modules/python-mock/PKGBUILD @@ -0,0 +1,40 @@ +# $Id$ +# Maintainer: jelle van der Waa <jelle@vdwaa.nl> +# Contributor: Felix Kaiser <felix.kaiser@fxkr.net> + +pkgbase=python-mock +pkgname=(python2-mock) +pkgver=1.0.1 +pkgrel=3 +pkgdesc='Mocking and Patching Library for Testing' +url='http://www.voidspace.org.uk/python/mock/' +makedepends=('python2') +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 +} |