Date: Tuesday, August 11, 2015 @ 08:05:08 Author: fyan Revision: 138199
archrelease: copy trunk to community-any Added: python-betamax-matchers/repos/community-any/ python-betamax-matchers/repos/community-any/PKGBUILD (from rev 138198, python-betamax-matchers/trunk/PKGBUILD) ----------+ PKGBUILD | 44 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 44 insertions(+) Copied: python-betamax-matchers/repos/community-any/PKGBUILD (from rev 138198, python-betamax-matchers/trunk/PKGBUILD) =================================================================== --- community-any/PKGBUILD (rev 0) +++ community-any/PKGBUILD 2015-08-11 06:05:08 UTC (rev 138199) @@ -0,0 +1,44 @@ +# $Id$ +# Maintainer: Felix Yan <felixonm...@archlinux.org> + +pkgbase=python-betamax-matchers +pkgname=('python-betamax-matchers' 'python2-betamax-matchers') +pkgver=0.2.0 +pkgrel=1 +pkgdesc="Experimental set of Matchers for Betamax that may possibly end up in the main package" +arch=('any') +license=('GPL') +url='https://github.com/sigmavirus24/betamax_matchers' +makedepends=('python-setuptools' 'python2-setuptools' 'python-betamax' 'python2-betamax' + 'python-requests-toolbelt' 'python2-requests-toolbelt' 'git') +checkdepends=('python-pytest-runner' 'python2-pytest-runner') +source=("git+https://github.com/sigmavirus24/betamax_matchers.git#tag=$pkgver") +md5sums=('SKIP') + +prepare() { + cp -a betamax_matchers{,-py2} +} + +check() { + cd "$srcdir/betamax_matchers" + python setup.py ptr + + cd "$srcdir/betamax_matchers-py2" + python2 setup.py ptr +} + +package_python-betamax-matchers() { + depends=('python-requests-toolbelt' 'python-betamax') + + cd "${srcdir}/betamax_matchers" + python setup.py install --root="${pkgdir}" --optimize=1 + install -D -m644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" +} + +package_python2-betamax-matchers() { + depends=('python2-requests-toolbelt' 'python2-betamax') + + cd "${srcdir}/betamax_matchers-py2" + python2 setup.py install --root="${pkgdir}" --optimize=1 + install -D -m644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" +}