Date: Monday, October 2, 2017 @ 16:33:00 Author: felixonmars Revision: 261272
archrelease: copy trunk to community-any Added: python-sure/repos/community-any/PKGBUILD (from rev 261271, python-sure/trunk/PKGBUILD) Deleted: python-sure/repos/community-any/PKGBUILD ----------+ PKGBUILD | 104 ++++++++++++++++++++++++++++++------------------------------- 1 file changed, 52 insertions(+), 52 deletions(-) Deleted: PKGBUILD =================================================================== --- PKGBUILD 2017-10-02 16:32:38 UTC (rev 261271) +++ PKGBUILD 2017-10-02 16:33:00 UTC (rev 261272) @@ -1,52 +0,0 @@ -# $Id$ -# Maintainer: Felix Yan <felixonm...@archlinux.org> - -pkgbase=python-sure -pkgname=("python-sure" "python2-sure") -pkgver=1.4.6 -pkgrel=1 -pkgdesc="HTTP client mock for Python" -arch=('any') -url="http://github.com/gabrielfalcao/sure" -license=('GPL') -makedepends=('python-six' 'python2-six' 'python-mock' 'python2-mock' 'python-setuptools' - 'python2-setuptools' 'git') -checkdepends=('python-nose' 'python2-nose') -source=("$pkgbase-$pkgver.tar.gz::https://github.com/gabrielfalcao/sure/archive/v$pkgver.tar.gz") -sha512sums=('5da5ff2d2629afaff0327af4cf94717c4097fcf102094fcd33d04cc23df8dc16b52fd4c6c524583dfc0f1b85150d73651f4fbb62814575ea67b5477db8c35291') - -prepare() { - cp -a sure-$pkgver{,-py2} - - export LC_CTYPE=en_US.UTF-8 -} - -build() { - cd "$srcdir"/sure-$pkgver - python setup.py build - - cd "$srcdir"/sure-$pkgver-py2 - python2 setup.py build -} - -check() { - cd "$srcdir"/sure-$pkgver - python setup.py test - - cd "$srcdir"/sure-$pkgver-py2 - python2 setup.py test -} - -package_python-sure() { - depends=('python-six' 'python-mock') - - cd sure-$pkgver - python setup.py install --root="$pkgdir" --optimize=1 -} - -package_python2-sure() { - depends=('python2-six' 'python2-mock') - - cd sure-$pkgver-py2 - python2 setup.py install --root="$pkgdir" --optimize=1 -} Copied: python-sure/repos/community-any/PKGBUILD (from rev 261271, python-sure/trunk/PKGBUILD) =================================================================== --- PKGBUILD (rev 0) +++ PKGBUILD 2017-10-02 16:33:00 UTC (rev 261272) @@ -0,0 +1,52 @@ +# $Id$ +# Maintainer: Felix Yan <felixonm...@archlinux.org> + +pkgbase=python-sure +pkgname=("python-sure" "python2-sure") +pkgver=1.4.7 +pkgrel=1 +pkgdesc="HTTP client mock for Python" +arch=('any') +url="https://github.com/gabrielfalcao/sure" +license=('GPL') +makedepends=('python-six' 'python2-six' 'python-mock' 'python2-mock' 'python-setuptools' + 'python2-setuptools' 'git') +checkdepends=('python-nose' 'python2-nose') +source=("$pkgbase-$pkgver.tar.gz::https://github.com/gabrielfalcao/sure/archive/v$pkgver.tar.gz") +sha512sums=('f8cf4616edaac53370be86fa38b7ba49bf5dcbf4fd6322470f7912618319fce679cd4afd47ffbad86e47be0be45ba2c06aafc3236f0ebb9368a1760c0b06726e') + +prepare() { + cp -a sure-$pkgver{,-py2} + + export LC_CTYPE=en_US.UTF-8 +} + +build() { + cd "$srcdir"/sure-$pkgver + python setup.py build + + cd "$srcdir"/sure-$pkgver-py2 + python2 setup.py build +} + +check() { + cd "$srcdir"/sure-$pkgver + python setup.py test + + cd "$srcdir"/sure-$pkgver-py2 + python2 setup.py test +} + +package_python-sure() { + depends=('python-six' 'python-mock') + + cd sure-$pkgver + python setup.py install --root="$pkgdir" --optimize=1 +} + +package_python2-sure() { + depends=('python2-six' 'python2-mock') + + cd sure-$pkgver-py2 + python2 setup.py install --root="$pkgdir" --optimize=1 +}