| 1 | # Contributor: Patrycja Rosa <[email protected]> |
| 2 | # Maintainer: Patrycja Rosa <[email protected]> |
| 3 | pkgname=cpplint |
| 4 | pkgver=2.0.2 |
| 5 | pkgrel=1 |
| 6 | pkgdesc="Static code checker for C++" |
| 7 | url="https://github.com/cpplint/cpplint" |
| 8 | arch="noarch" |
| 9 | license="BSD-3-Clause" |
| 10 | makedepends="py3-setuptools py3-gpep517 py3-wheel" |
| 11 | checkdepends=" |
| 12 | py3-parameterized |
| 13 | py3-pytest |
| 14 | py3-pytest-cov |
| 15 | py3-pytest-runner |
| 16 | py3-pytest-timeout |
| 17 | py3-testfixtures |
| 18 | " |
| 19 | subpackages="$pkgname-pyc" |
| 20 | source="https://github.com/cpplint/cpplint/archive/$pkgver/cpplint-$pkgver.tar.gz |
| 21 | replace-codecs-open.patch |
| 22 | " |
| 23 | |
| 24 | build() { |
| 25 | gpep517 build-wheel \ |
| 26 | --wheel-dir .dist \ |
| 27 | --output-fd 3 3>&1 >&2 |
| 28 | } |
| 29 | |
| 30 | check() { |
| 31 | python3 -m venv --clear --without-pip --system-site-packages .testenv |
| 32 | .testenv/bin/python3 -m installer .dist/*.whl |
| 33 | .testenv/bin/python3 -m pytest |
| 34 | } |
| 35 | |
| 36 | package() { |
| 37 | gpep517 install-wheel --destdir "$pkgdir" \ |
| 38 | .dist/*.whl |
| 39 | } |
| 40 | |
| 41 | sha512sums=" |
| 42 | afb98f4c0da4a694d5fb1005862ed0d3c6f676da8893b461f2c6f99edc7decacb375569a4f3b07b9e533ec3775c3c9fbff1e72b228d302c826e3a7f6725d13b5 cpplint-2.0.2.tar.gz |
| 43 | 50ac00c36e88ae35e0f38182f136d041ef147505cf5bffdcf221043a647f8f4799ca4005130f85defbb719031cea26cdc3d2aecbefa7e823e7d5018d2cea0e68 replace-codecs-open.patch |
| 44 | " |