void-packages/srcpkgs/cppcheck/template

31 lines
867 B
Bash

# Template file for 'cppcheck'
pkgname=cppcheck
version=2.9
revision=1
build_style=gnu-makefile
make_build_args="
FILESDIR=/usr/share/cppcheck
MATCHCOMPILER=yes
HAVE_RULES=yes
DB2MAN=/usr/share/xsl/docbook/manpages/docbook.xsl"
make_install_args="${make_build_args}"
make_build_target="cppcheck man"
python_version="3"
hostmakedepends="libxslt docbook-xsl python3 which"
makedepends="pcre-devel"
depends="python3"
short_desc="Static analysis of C/C++ code"
maintainer="Duncaen <duncaen@voidlinux.org>"
license="GPL-3.0-or-later"
homepage="http://cppcheck.sourceforge.net"
changelog="https://sourceforge.net/p/cppcheck/news/"
distfiles="https://github.com/danmar/cppcheck/archive/${version}.tar.gz"
checksum=56aee8b5bdf936ab7adc9ab43903ba2052f088695c80f047682024a1ed0ef3f3
export CXXFLAGS="-DNDEBUG"
export LDFLAGS="-pthread"
post_install() {
vman cppcheck.1
}