# Contributor: Patrycja Rosa # Maintainer: Patrycja Rosa pkgname=cpplint pkgver=2.0.0 pkgrel=0 pkgdesc="Static code checker for C++" url="https://github.com/cpplint/cpplint" arch="noarch" license="BSD-3-Clause" makedepends="py3-setuptools py3-gpep517 py3-wheel" checkdepends=" py3-parameterized py3-pytest py3-pytest-cov py3-pytest-runner py3-pytest-timeout py3-testfixtures " subpackages="$pkgname-pyc" source="https://github.com/cpplint/cpplint/archive/$pkgver/cpplint-$pkgver.tar.gz" build() { gpep517 build-wheel \ --wheel-dir .dist \ --output-fd 3 3>&1 >&2 } check() { python3 -m venv --clear --without-pip --system-site-packages .testenv gpep517 install-wheel --destdir .testenv --prefix '' .dist/*.whl .testenv/bin/python3 -m pytest } package() { gpep517 install-wheel --destdir "$pkgdir" \ .dist/*.whl } sha512sums=" 2aec50de6bd2f29190cf76fd642b93db9727395e254139b794071d81a7d7af4ea5a008426914181167d3dddcfd679bff12b24b242031d90f27d6b5df41c59424 cpplint-2.0.0.tar.gz "