2024-01-16 23:12:04 +01:00

40 lines
1.3 KiB
Plaintext

# Contributor: Patrycja Rosa <alpine@ptrcnull.me>
# Maintainer: Patrycja Rosa <alpine@ptrcnull.me>
pkgname=cpplint
pkgver=1.6.1
pkgrel=2
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-pytest py3-pytest-runner py3-pytest-cov py3-testfixtures"
subpackages="$pkgname-pyc"
source="https://github.com/cpplint/cpplint/archive/refs/tags/$pkgver/cpplint-$pkgver.tar.gz
relax-dependencies.patch
remove-sre_compile.patch
"
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="
be5c3c9044d862fc82e66987a76f3d01d5733c26774185fa3776b16943c3cb36d391bc20009940db744853df03614b47d88988c6823f8cda20b794b9075684cb cpplint-1.6.1.tar.gz
6c414622232ff232e5d90dc79284a793ee11c1c9e77c5122d851ee5316f9ed64289b98964dfb1b017d794ddd259af7459a5488d87edbf2282d813a249eabd3cb relax-dependencies.patch
0a325aac30c451ab41305f21081d75525c1a370a0bc96f35b48b932a71270b5d89fb78d03946d0cdf1681d691db3a50f98c170f3a1a45e2db44aea906698a185 remove-sre_compile.patch
"