aboutsummaryrefslogtreecommitdiffstats
path: root/testing/pylint/APKBUILD
blob: 8d2c640da98b092d471d58328421b4e4ba8d0fc8 (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.2.1
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.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="c49008134f2905cc88251f19d33e616c  pylint-1.2.1.tar.gz"
sha256sums="63f6b3a1c646b551ff47e898700d16ab309f586bca63065de447fcfa6091ff60  pylint-1.2.1.tar.gz"
sha512sums="cd6f55a489f5102535d56aee35ed1b34837801367ae13781bf59cce09e25802736d76c4742c1994fab9e62efa9e6a3c974d5ce5d006763f0515afee7f1cd71eb  pylint-1.2.1.tar.gz"