void-packages/srcpkgs/cppcheck/template
2016-10-13 09:27:55 +02:00

24 lines
732 B
Bash

# Template file for 'cppcheck'
pkgname=cppcheck
version=1.76.1
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=5f3e6e276781cd36631baf91a2904b6433894a108ba41389050541331e57ec22
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
}