aboutsummaryrefslogtreecommitdiffstats
path: root/community/yamllint/APKBUILD
blob: 2d849723d0ee65aa5fb019abd8aaff14a75d9e95 (plain) (blame)
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
# Contributor: Jakub Jirutka <jakub@jirutka.cz>
# Maintainer: Jakub Jirutka <jakub@jirutka.cz>
pkgname=yamllint
pkgver=1.26.2
pkgrel=0
pkgdesc="A linter for YAML files"
url="https://github.com/adrienverge/yamllint"
arch="noarch"
license="GPL-3.0-or-later"
depends="python3 py3-pathspec py3-yaml"
makedepends="py3-setuptools"
source="https://github.com/adrienverge/yamllint/archive/v$pkgver/yamllint-$pkgver.tar.gz
	skip-locale-tests.patch"

build() {
	python3 setup.py build
}

check() {
	python3 -m unittest discover
}

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

sha512sums="
9c249dfa1b6a45de0816ffe00b35a45e418b17f822f9679a8a958f173ca910bd4169b1e831a50d0213d8b0be9f26fe19b71d7582867a82bbcf9e880155a688f4  yamllint-1.26.2.tar.gz
abf8e7089ffa29efd8cea682d7b1178a3a93a5f1158bdf6d058437308e2dce33b72278a303b5a1b9e7dc57040c414ba7945c19b0500788cd3426c9192bce5440  skip-locale-tests.patch
"