void-packages/srcpkgs/cppcheck/template
maxice8 b1393d54ab cppcheck: update to 1.82.
Closes: #10825 [via git-merge-pr]
2018-01-16 05:19:53 +01:00

24 lines
730 B
Bash

# Template file for 'cppcheck'
pkgname=cppcheck
version=1.82
revision=1
hostmakedepends="libxslt docbook-xsl"
short_desc="Static analysis of C/C++ code"
maintainer="Juan RP <xtraeme@voidlinux.eu>"
license="GPL-2"
homepage="http://cppcheck.sourceforge.net"
distfiles="https://github.com/danmar/cppcheck/archive/$version.tar.gz"
checksum=524444a678e63dee247fd8d2fe3194317c07f2aa65de31a41aa2eb0553bbdc7f
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
}