29571ffb18
Closes: #13157 [via git-merge-pr] Signed-off-by: Jürgen Buchmüller <pullmoll@t-online.de>
24 lines
741 B
Bash
24 lines
741 B
Bash
# Template file for 'cppcheck'
|
|
pkgname=cppcheck
|
|
version=1.83
|
|
revision=1
|
|
hostmakedepends="libxslt docbook-xsl"
|
|
short_desc="Static analysis of C/C++ code"
|
|
maintainer="Juan RP <xtraeme@voidlinux.eu>"
|
|
license="GPL-3.0-or-later"
|
|
homepage="http://cppcheck.sourceforge.net"
|
|
distfiles="https://github.com/danmar/cppcheck/archive/$version.tar.gz"
|
|
checksum=7d3656762beee8087e234a796c900c84b004ac241301106b6a2c01ef2beff095
|
|
|
|
CXXFLAGS="-std=c++11"
|
|
|
|
do_build() {
|
|
make ${makejobs} CFGDIR=/usr/share/cppcheck/cfg
|
|
make ${makejobs} DB2MAN=/usr/share/xsl/docbook/manpages/docbook.xsl all man
|
|
}
|
|
do_install() {
|
|
make DESTDIR=${DESTDIR} CFGDIR=/usr/share/cppcheck/cfg install
|
|
vman cppcheck.1
|
|
vmkdir usr/share/${pkgname}
|
|
vcopy cfg/ usr/share/${pkgname}/cfg
|
|
}
|