Date: Monday, October 10, 2016 @ 15:53:17 Author: felixonmars Revision: 191877
archrelease: copy trunk to community-any Added: yapf/repos/community-any/PKGBUILD (from rev 191876, yapf/trunk/PKGBUILD) Deleted: yapf/repos/community-any/PKGBUILD ----------+ PKGBUILD | 104 ++++++++++++++++++++++++++++++------------------------------- 1 file changed, 52 insertions(+), 52 deletions(-) Deleted: PKGBUILD =================================================================== --- PKGBUILD 2016-10-10 15:53:00 UTC (rev 191876) +++ PKGBUILD 2016-10-10 15:53:17 UTC (rev 191877) @@ -1,52 +0,0 @@ -# $Id$ -# Maintainer: Felix Yan <felixonm...@archlinux.org> - -pkgbase=yapf -pkgname=("yapf" "python2-yapf") -pkgver=0.12.1 -pkgrel=1 -pkgdesc="Python style guide checker" -arch=('any') -url="http://github.com/google/yapf" -license=('Apache') -makedepends=('python-setuptools' 'python2-setuptools' 'git') -checkdepends=('python-nose' 'python2-nose') -source=("git+https://github.com/google/yapf.git#tag=v$pkgver") -sha256sums=('SKIP') - -prepare() { - cp -a yapf{,-py2} -} - -build() { - cd "$srcdir"/yapf - python setup.py build - - cd "$srcdir"/yapf-py2 - python2 setup.py build -} - -check() { - cd "$srcdir"/yapf - nosetests3 - - cd "$srcdir"/yapf-py2 - nosetests2 -} - -package_yapf() { - depends=('python-setuptools') - - cd yapf - python setup.py install -O1 --root="$pkgdir" -} - -package_python2-yapf() { - depends=('python2-setuptools') - - cd yapf-py2 - python2 setup.py install -O1 --root="$pkgdir" - mv "$pkgdir"/usr/bin/yapf{,2} -} - -# vim:set ts=2 sw=2 et: Copied: yapf/repos/community-any/PKGBUILD (from rev 191876, yapf/trunk/PKGBUILD) =================================================================== --- PKGBUILD (rev 0) +++ PKGBUILD 2016-10-10 15:53:17 UTC (rev 191877) @@ -0,0 +1,52 @@ +# $Id$ +# Maintainer: Felix Yan <felixonm...@archlinux.org> + +pkgbase=yapf +pkgname=("yapf" "python2-yapf") +pkgver=0.12.2 +pkgrel=1 +pkgdesc="Python style guide checker" +arch=('any') +url="http://github.com/google/yapf" +license=('Apache') +makedepends=('python-setuptools' 'python2-setuptools' 'git') +checkdepends=('python-nose' 'python2-nose') +source=("git+https://github.com/google/yapf.git#tag=v$pkgver") +sha256sums=('SKIP') + +prepare() { + cp -a yapf{,-py2} +} + +build() { + cd "$srcdir"/yapf + python setup.py build + + cd "$srcdir"/yapf-py2 + python2 setup.py build +} + +check() { + cd "$srcdir"/yapf + nosetests3 + + cd "$srcdir"/yapf-py2 + nosetests2 +} + +package_yapf() { + depends=('python-setuptools') + + cd yapf + python setup.py install -O1 --root="$pkgdir" +} + +package_python2-yapf() { + depends=('python2-setuptools') + + cd yapf-py2 + python2 setup.py install -O1 --root="$pkgdir" + mv "$pkgdir"/usr/bin/yapf{,2} +} + +# vim:set ts=2 sw=2 et: