Date: Saturday, March 29, 2014 @ 03:38:06 Author: fyan Revision: 108577
addpkg: python-pyflakes 0.8-2 Added: python-pyflakes/ python-pyflakes/repos/ python-pyflakes/trunk/ python-pyflakes/trunk/PKGBUILD ----------+ PKGBUILD | 65 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 65 insertions(+) Added: python-pyflakes/trunk/PKGBUILD =================================================================== --- python-pyflakes/trunk/PKGBUILD (rev 0) +++ python-pyflakes/trunk/PKGBUILD 2014-03-29 02:38:06 UTC (rev 108577) @@ -0,0 +1,65 @@ +# $Id$ +# Maintainer: Felix Yan <[email protected]> +# Contributor: Karol 'Kenji Takahashi' Woźniak <kenji.sx> +# Contributor: Tianjiao Yin <[email protected]> +# Contributor: Thomas Dziedzic < gostrc at gmail > +# Contributor: TDY <[email protected]> +# Contributor: Tiago Pierezan Camargo <[email protected]> + +pkgbase=python-pyflakes +pkgname=(python-pyflakes python2-pyflakes) +_reponame=pyflakes +pkgver=0.8 +pkgrel=2 +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=('801c9ad6bddc95e436b103a8deefbfe0f4451f50') + +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') + + 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') + + 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" +} Property changes on: python-pyflakes/trunk/PKGBUILD ___________________________________________________________________ Added: svn:keywords ## -0,0 +1 ## +Id \ No newline at end of property
