Date: Saturday, December 24, 2016 @ 11:07:09 Author: felixonmars Revision: 201379
archrelease: copy trunk to community-staging-any Added: python-zope-testing/repos/community-staging-any/ python-zope-testing/repos/community-staging-any/PKGBUILD (from rev 201378, python-zope-testing/trunk/PKGBUILD) ----------+ PKGBUILD | 52 ++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 52 insertions(+) Copied: python-zope-testing/repos/community-staging-any/PKGBUILD (from rev 201378, python-zope-testing/trunk/PKGBUILD) =================================================================== --- community-staging-any/PKGBUILD (rev 0) +++ community-staging-any/PKGBUILD 2016-12-24 11:07:09 UTC (rev 201379) @@ -0,0 +1,52 @@ +# $Id$ +# Maintainer: Felix Yan <felixonm...@archlinux.org> + +pkgname=('python-zope-testing' 'python2-zope-testing') +pkgver=4.6.0 +pkgrel=2 +pkgdesc="Zope testing helpers" +arch=('any') +url="https://github.com/zopefoundation/zope.testing" +license=('ZPL') +makedepends=('python-setuptools' 'python2-setuptools' 'python-zope-interface' + 'python2-zope-interface' 'git' 'python-zope-exceptions' + 'python2-zope-exceptions') +checkdepends=('python-nose' 'python2-nose') +source=("git+https://github.com/zopefoundation/zope.testing.git#tag=$pkgver") +sha256sums=('SKIP') + +prepare() { + cp -a zope.testing{,-py2} +} + +build() { + cd "$srcdir/zope.testing" + python setup.py build + + cd "$srcdir/zope.testing-py2" + python2 setup.py build +} + +check() { + cd "$srcdir/zope.testing" + python setup.py test + + cd "$srcdir/zope.testing-py2" + python2 setup.py test +} + +package_python-zope-testing() { + depends=('python-setuptools' 'python-zope-interface' 'python-zope-exceptions') + + cd "$srcdir/zope.testing" + python setup.py install --root="$pkgdir/" --optimize=1 +} + +package_python2-zope-testing() { + depends=('python2-setuptools' 'python2-zope-interface' 'python2-zope-exceptions') + + cd "$srcdir/zope.testing-py2" + python2 setup.py install --root="$pkgdir/" --optimize=1 +} + +# vim:set ts=2 sw=2 et: