Date: Tuesday, August 23, 2016 @ 04:46:30 Author: felixonmars Revision: 187361
archrelease: copy trunk to community-any Added: python-case/repos/community-any/PKGBUILD (from rev 187360, python-case/trunk/PKGBUILD) Deleted: python-case/repos/community-any/PKGBUILD ----------+ PKGBUILD | 102 ++++++++++++++++++++++++++++++------------------------------- 1 file changed, 51 insertions(+), 51 deletions(-) Deleted: PKGBUILD =================================================================== --- PKGBUILD 2016-08-23 04:46:17 UTC (rev 187360) +++ PKGBUILD 2016-08-23 04:46:30 UTC (rev 187361) @@ -1,51 +0,0 @@ -# $Id$ -# Maintainer: Felix Yan <felixonm...@archlinux.org> - -pkgbase=python-case -pkgname=('python-case' 'python2-case') -pkgver=1.3.0 -pkgrel=1 -pkgdesc="Python unittest Utilities" -arch=('any') -license=('BSD') -url="https://github.com/celery/case" -makedepends=('python-nose' 'python2-nose' 'python2-mock' 'python2-unittest2' 'git') -checkdepends=('python-coverage' 'python2-coverage') -source=("git+https://github.com/celery/case.git#tag=v$pkgver") -sha512sums=('SKIP') - -prepare() { - cp -a case{,-py2} -} - -build() { - cd "$srcdir"/case - python setup.py build - - cd "$srcdir"/case-py2 - python2 setup.py build -} - -check() { - cd "$srcdir"/case - nosetests3 - - cd "$srcdir"/case-py2 - nosetests2 -} - -package_python-case() { - depends=('python-nose') - - cd case - python setup.py install --root="$pkgdir" --optimize=1 - install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE -} - -package_python2-case() { - depends=('python2-nose' 'python2-mock' 'python2-unittest2') - - cd case-py2 - python2 setup.py install --root="$pkgdir" --optimize=1 - install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE -} Copied: python-case/repos/community-any/PKGBUILD (from rev 187360, python-case/trunk/PKGBUILD) =================================================================== --- PKGBUILD (rev 0) +++ PKGBUILD 2016-08-23 04:46:30 UTC (rev 187361) @@ -0,0 +1,51 @@ +# $Id$ +# Maintainer: Felix Yan <felixonm...@archlinux.org> + +pkgbase=python-case +pkgname=('python-case' 'python2-case') +pkgver=1.3.1 +pkgrel=1 +pkgdesc="Python unittest Utilities" +arch=('any') +license=('BSD') +url="https://github.com/celery/case" +makedepends=('python-nose' 'python2-nose' 'python2-mock' 'python2-unittest2' 'git') +checkdepends=('python-coverage' 'python2-coverage') +source=("git+https://github.com/celery/case.git#tag=v$pkgver") +sha512sums=('SKIP') + +prepare() { + cp -a case{,-py2} +} + +build() { + cd "$srcdir"/case + python setup.py build + + cd "$srcdir"/case-py2 + python2 setup.py build +} + +check() { + cd "$srcdir"/case + nosetests3 + + cd "$srcdir"/case-py2 + nosetests2 +} + +package_python-case() { + depends=('python-nose') + + cd case + python setup.py install --root="$pkgdir" --optimize=1 + install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE +} + +package_python2-case() { + depends=('python2-nose' 'python2-mock' 'python2-unittest2') + + cd case-py2 + python2 setup.py install --root="$pkgdir" --optimize=1 + install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE +}