# Contributor: Fabian Affolter # Maintainer: Fabian Affolter pkgname=pylint pkgver=1.6.4 pkgrel=0 pkgdesc="Analyzes Python code looking for bugs and signs of poor quality" url="http://pypi.python.org/pypi/pylint" arch="noarch" license="GPL2+" depends="py-astroid" makedepends="python2-dev python3-dev py-setuptools" subpackages="py2-${pkgname#py-}:_py2 py3-${pkgname#py-}:_py3" source="https://files.pythonhosted.org/packages/source/${pkgname:0:1}/$pkgname/$pkgname-$pkgver.tar.gz" builddir="$srcdir"/$pkgname-$pkgver build() { cd "$builddir" python2 setup.py build || return 1 python3 setup.py build || return 1 } package() { mkdir -p "$pkgdir" } _py2() { replaces="$pkgname" depends="${depends//py-/py2-}" _py python2 } _py3() { depends="${depends//py-/py3-}" _py python3 } _py() { local python="$1" pkgdesc="$pkgdesc (for $python)" depends="$depends $python" install_if="$pkgname=$pkgver-r$pkgrel $python" cd "$builddir" $python setup.py install --prefix=/usr --root="$subpkgdir" } md5sums="66ba9c27e067568bdabcdd7c21303903 pylint-1.6.4.tar.gz" sha256sums="ef901a34b62ed7a734370ba5b162d890231ba8822abe88c6dda1268e2575f5f1 pylint-1.6.4.tar.gz" sha512sums="8252a46f8a7ff6a70f2ea10a94a9e8618a903014210cf87c061e649fbe0c2106fb1b63643605ae0ed3f4652e8ed09442f4fd32a0df11f3639e6e35128e432d51 pylint-1.6.4.tar.gz"