Date: Wednesday, June 10, 2015 @ 04:27:57 Author: fyan Revision: 135111
archrelease: copy trunk to community-any Added: python-pyflakes/repos/community-any/PKGBUILD (from rev 135110, python-pyflakes/trunk/PKGBUILD) Deleted: python-pyflakes/repos/community-any/PKGBUILD ----------+ PKGBUILD | 130 ++++++++++++++++++++++++++++++------------------------------- 1 file changed, 65 insertions(+), 65 deletions(-) Deleted: PKGBUILD =================================================================== --- PKGBUILD 2015-06-10 02:27:43 UTC (rev 135110) +++ PKGBUILD 2015-06-10 02:27:57 UTC (rev 135111) @@ -1,65 +0,0 @@ -# $Id$ -# Maintainer: Felix Yan <felixonm...@archlinux.org> -# Contributor: Karol 'Kenji Takahashi' Woźniak <kenji.sx> -# Contributor: Tianjiao Yin <ytj000+...@gmail.com> -# Contributor: Thomas Dziedzic < gostrc at gmail > -# Contributor: TDY <t...@gmx.com> -# Contributor: Tiago Pierezan Camargo <tcama...@gmail.com> - -pkgbase=python-pyflakes -pkgname=(python-pyflakes python2-pyflakes) -_reponame=pyflakes -pkgver=0.9.0 -pkgrel=1 -pkgdesc='A lint-like tool for Python to identify common errors quickly without executing code' -arch=('any') -url='http://pypi.python.org/pypi/pyflakes' -license=('MIT') -makedepends=('python-setuptools' 'python2-setuptools') -source=("http://pypi.python.org/packages/source/p/pyflakes/${_reponame}-${pkgver}.tar.gz") -sha1sums=('0a9f02b54d88bbc95510dd95228d91df76da5607') - -prepare() { - cp -r "${_reponame}-${pkgver}"{,-py2} -} - -build() { - cd "$srcdir/${_reponame}-${pkgver}" - python setup.py build - - cd "$srcdir/${_reponame}-${pkgver}-py2" - python2 setup.py build -} - -check() { - cd "$srcdir/${_reponame}-${pkgver}" - python setup.py test - - cd "$srcdir/${_reponame}-${pkgver}-py2" - python2 setup.py test -} - -package_python-pyflakes() { - depends=('python-setuptools') - - cd "${_reponame}-${pkgver}" - - python setup.py install --prefix=/usr --root="${pkgdir}" --optimize=1 - - # We have python 3 as default python, and want to keep compatibility with the old pyflakes3k naming - ln -s pyflakes "${pkgdir}/usr/bin/pyflakes3k" - - install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE" -} - -package_python2-pyflakes() { - depends=('python2-setuptools') - - cd "${_reponame}-${pkgver}-py2" - - python2 setup.py install --prefix=/usr --root="${pkgdir}" --optimize=1 - - mv "${pkgdir}/usr/bin/pyflakes" "${pkgdir}/usr/bin/pyflakes-python2" - - install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE" -} Copied: python-pyflakes/repos/community-any/PKGBUILD (from rev 135110, python-pyflakes/trunk/PKGBUILD) =================================================================== --- PKGBUILD (rev 0) +++ PKGBUILD 2015-06-10 02:27:57 UTC (rev 135111) @@ -0,0 +1,65 @@ +# $Id$ +# Maintainer: Felix Yan <felixonm...@archlinux.org> +# Contributor: Karol 'Kenji Takahashi' Woźniak <kenji.sx> +# Contributor: Tianjiao Yin <ytj000+...@gmail.com> +# Contributor: Thomas Dziedzic < gostrc at gmail > +# Contributor: TDY <t...@gmx.com> +# Contributor: Tiago Pierezan Camargo <tcama...@gmail.com> + +pkgbase=python-pyflakes +pkgname=(python-pyflakes python2-pyflakes) +_reponame=pyflakes +pkgver=0.9.1 +pkgrel=1 +pkgdesc='A lint-like tool for Python to identify common errors quickly without executing code' +arch=('any') +url='http://pypi.python.org/pypi/pyflakes' +license=('MIT') +makedepends=('python-setuptools' 'python2-setuptools') +source=("http://pypi.python.org/packages/source/p/pyflakes/${_reponame}-${pkgver}.tar.gz") +sha1sums=('f6c68e7183f0d39af60583c435515b3b18094a37') + +prepare() { + cp -a "${_reponame}-${pkgver}"{,-py2} +} + +build() { + cd "$srcdir/${_reponame}-${pkgver}" + python setup.py build + + cd "$srcdir/${_reponame}-${pkgver}-py2" + python2 setup.py build +} + +check() { + cd "$srcdir/${_reponame}-${pkgver}" + python setup.py test + + cd "$srcdir/${_reponame}-${pkgver}-py2" + python2 setup.py test +} + +package_python-pyflakes() { + depends=('python-setuptools') + + cd "${_reponame}-${pkgver}" + + python setup.py install --prefix=/usr --root="${pkgdir}" --optimize=1 + + # We have python 3 as default python, and want to keep compatibility with the old pyflakes3k naming + ln -s pyflakes "${pkgdir}/usr/bin/pyflakes3k" + + install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE" +} + +package_python2-pyflakes() { + depends=('python2-setuptools') + + cd "${_reponame}-${pkgver}-py2" + + python2 setup.py install --prefix=/usr --root="${pkgdir}" --optimize=1 + + mv "${pkgdir}/usr/bin/pyflakes" "${pkgdir}/usr/bin/pyflakes-python2" + + install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE" +}