# Contributor: Fabian Affolter <fabian@affolter-engineering.ch>
# Maintainer: Fabian Affolter <fabian@affolter-engineering.ch>
pkgname=flawfinder
pkgver=2.0.19
pkgrel=4
pkgdesc="Examines C/C++ source code for security flaws"
url="https://dwheeler.com/flawfinder/"
arch="noarch"
license="GPL-2.0"
depends="python3"
makedepends="py3-gpep517 py3-setuptools py3-wheel"
subpackages="$pkgname-doc $pkgname-pyc"
source="https://dwheeler.com/flawfinder/flawfinder-$pkgver.tar.gz"

build() {
	gpep517 build-wheel --wheel-dir .dist --output-fd 3 3>&1 >&2
}

check() {
	make check PYTHON=python3 PYTHON3=python3
}

package() {
	python3 -m installer -d "$pkgdir" .dist/*.whl
}

sha512sums="
7ac8684f157f30cb7cc0e2d9c270f92bb26e9207d9879530c499cc93af10070c2558f3794cc8b1a0a51b52ae771a4aa47157b467d0e6578cab96360cb0c6d90b  flawfinder-2.0.19.tar.gz
"
