void-packages/srcpkgs/cppcheck/template
maxice8 f9a53810a4
cppcheck: update to 1.84.
Closes #15052.

Signed-off-by: Enno Boland <gottox@voidlinux.eu>
2018-06-14 12:33:12 +02:00

24 lines
736 B
Bash

# Template file for 'cppcheck'
pkgname=cppcheck
version=1.84
revision=1
hostmakedepends="libxslt docbook-xsl"
depends="python"
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=aaa6293d91505fc6caa6982ca3cd2d949fa1aac603cabad072b705fdda017fc5
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
}