aboutsummaryrefslogtreecommitdiffstats
path: root/community/ansible-lint/APKBUILD
blob: 555ba3edcb78881b5140f845859d825517f49c4a (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
# Contributor: Fabian Affolter <fabian@affolter-engineering.ch>
# Maintainer: Fabian Affolter <fabian@affolter-engineering.ch>
pkgname=ansible-lint
pkgver=4.1.0
pkgrel=1
pkgdesc="A tool to check ansible playbooks"
url="https://github.com/ansible/ansible-lint"
arch="noarch"
license="MIT"
depends="ansible py3-yaml py3-six py3-ruamel.yaml py3-setuptools"
makedepends="python3-dev"
source="https://files.pythonhosted.org/packages/source/a/$pkgname/$pkgname-$pkgver.tar.gz
	10-python3-shebang.patch
	"
provides="py3-ansible-lint=$pkgver-r$pkgrel" # for backward compatibility
replaces="py3-ansible-lint" # for backward compatibility

build() {
	cd "$builddir"
	python3 setup.py build
}

package() {
	cd "$builddir"
	python3 setup.py install --prefix=/usr --root="$pkgdir"
}

check() {
	cd "$builddir"
	python3 setup.py test
}

sha512sums="320d0e544b2d0097f1a27b84d3abd0719096b643d77f0c920fdb07d3a40cc7fd967a36979c5a9700c53370ad86e516e35666a00224b2ca9661373de95dbc8106  ansible-lint-4.1.0.tar.gz
4a8dbbc51f686985ba857aff4063c8f2078af4d9b4134d799017cca958d85e59e0f9985f8e1bb16c6e1110f2586119d33c31364e31722b343de15376e4a8dd2d  10-python3-shebang.patch"