aboutsummaryrefslogtreecommitdiffstats
path: root/testing/pylint/APKBUILD
blob: 385f18f34db95ee189f0310d954e98e73f4052ff (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
# Contributor: Fabian Affolter <fabian@affolter-engineering.ch>
# Maintainer: Fabian Affolter <fabian@affolter-engineering.ch>
pkgname=pylint
pkgver=1.4.3
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="python py-astroid"
depends_dev=""
makedepends="python-dev py-setuptools py-astroid"
install=""
subpackages="$pkgname-doc"
source="https://files.pythonhosted.org/packages/source/${pkgname:0:1}/$pkgname/$pkgname-$pkgver.tar.gz"

_builddir="$srcdir"/$pkgname-$pkgver
build() {
	cd "$_builddir"
	python setup.py build || return 1
}

package() {
	cd "$_builddir"
	python setup.py install --prefix=/usr --root="$pkgdir" || return 1
}

doc() {
    # The man page is not picked-up automatically
	mkdir -p "$subpkgdir"/usr/share/man/man1 || return 1
    mv "$_builddir"/man/*.1 "$subpkgdir"/usr/share/man/man1/ || return 1
}

md5sums="5924c1c7ca5ca23647812f5971d0ea44  pylint-1.4.3.tar.gz"
sha256sums="1dce8c143a5aa15e0638887c2b395e2e823223c63ebaf8d5f432a99e44b29f60  pylint-1.4.3.tar.gz"
sha512sums="63af8c72496b88db967c61d5be2b974fca053a45425ea8b5898e941be135d26c8c004b91b8b3a98337c0c5af4f5a530afbf091d7c5ecfa36bfa36aef9f843a95  pylint-1.4.3.tar.gz"