aboutsummaryrefslogtreecommitdiffstats
path: root/testing/pylint/APKBUILD
blob: 0c7ded56317eab2d6b553429738616dc06ee8c86 (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.3.0
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="http://pypi.python.org/packages/source/${pkgname:0:1}/$pkgname/$pkgname-$pkgver.zip"

_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="ecfcddf4238fd9b20e80054e3232081e  pylint-1.3.0.zip"
sha256sums="428fad302eacadec979d267df1ba55047d997a99b26d69624964d2b7412d09be  pylint-1.3.0.zip"
sha512sums="3274181818b6f8cae6765edaed0d630e88c84b615979c25da2718949fba868d593fa96ff64effdf181c86a71d2f73ab3163bf8835de9cf7e78bb5be6cbf3e641  pylint-1.3.0.zip"