Date: Wednesday, January 20, 2016 @ 15:04:37 Author: fyan Revision: 158095
archrelease: copy trunk to community-any Added: python-flexmock/repos/community-any/PKGBUILD (from rev 158094, python-flexmock/trunk/PKGBUILD) Deleted: python-flexmock/repos/community-any/PKGBUILD ----------+ PKGBUILD | 108 ++++++++++++++++++++++++++++++------------------------------- 1 file changed, 54 insertions(+), 54 deletions(-) Deleted: PKGBUILD =================================================================== --- PKGBUILD 2016-01-20 14:04:18 UTC (rev 158094) +++ PKGBUILD 2016-01-20 14:04:37 UTC (rev 158095) @@ -1,54 +0,0 @@ -# $Id$ -# Maintainer: Felix Yan <felixonm...@archlinux.org> - -pkgbase=python-flexmock -pkgname=('python-flexmock' 'python2-flexmock') -pkgver=0.10.1 -pkgrel=1 -pkgdesc="Mock/Stub/Spy library for Python" -arch=('any') -license=('BSD') -url="http://has207.github.com/flexmock" -makedepends=('python-setuptools' 'python2-setuptools' 'git') -checkdepends=('python-pytest-runner' 'python2-pytest-runner') -source=("git+https://github.com/bkabrda/flexmock.git#tag=$pkgver") -sha512sums=('SKIP') - -prepare() { - cp -a flexmock{,-py2} - - # To workaround build issues - export LC_CTYPE=en_US.UTF-8 -} - -build() { - cd "$srcdir/flexmock" - python setup.py build - - cd "$srcdir/flexmock-py2" - python2 setup.py build -} - -check() { - cd "$srcdir/flexmock" - python setup.py ptr - - cd "$srcdir/flexmock-py2" - python2 setup.py ptr -} - -package_python-flexmock() { - depends=('python') - - cd flexmock - python setup.py install --root="${pkgdir}" --optimize=1 - install -D -m644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" -} - -package_python2-flexmock() { - depends=('python2') - - cd flexmock-py2 - python2 setup.py install --root="${pkgdir}" --optimize=1 - install -D -m644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" -} Copied: python-flexmock/repos/community-any/PKGBUILD (from rev 158094, python-flexmock/trunk/PKGBUILD) =================================================================== --- PKGBUILD (rev 0) +++ PKGBUILD 2016-01-20 14:04:37 UTC (rev 158095) @@ -0,0 +1,54 @@ +# $Id$ +# Maintainer: Felix Yan <felixonm...@archlinux.org> + +pkgbase=python-flexmock +pkgname=('python-flexmock' 'python2-flexmock') +pkgver=0.10.2 +pkgrel=1 +pkgdesc="Mock/Stub/Spy library for Python" +arch=('any') +license=('BSD') +url="http://has207.github.com/flexmock" +makedepends=('python-setuptools' 'python2-setuptools' 'git') +checkdepends=('python-pytest-runner' 'python2-pytest-runner') +source=("git+https://github.com/bkabrda/flexmock.git#tag=$pkgver") +sha512sums=('SKIP') + +prepare() { + cp -a flexmock{,-py2} + + # To workaround build issues + export LC_CTYPE=en_US.UTF-8 +} + +build() { + cd "$srcdir/flexmock" + python setup.py build + + cd "$srcdir/flexmock-py2" + python2 setup.py build +} + +check() { + cd "$srcdir/flexmock" + python setup.py ptr + + cd "$srcdir/flexmock-py2" + python2 setup.py ptr +} + +package_python-flexmock() { + depends=('python') + + cd flexmock + python setup.py install --root="${pkgdir}" --optimize=1 + install -D -m644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" +} + +package_python2-flexmock() { + depends=('python2') + + cd flexmock-py2 + python2 setup.py install --root="${pkgdir}" --optimize=1 + install -D -m644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" +}