diff --git a/srcpkgs/cppcheck/template b/srcpkgs/cppcheck/template index fb00986741d..fc12ca4663a 100644 --- a/srcpkgs/cppcheck/template +++ b/srcpkgs/cppcheck/template @@ -1,24 +1,25 @@ # Template file for 'cppcheck' pkgname=cppcheck -version=1.88 +version=1.89 revision=1 -hostmakedepends="libxslt docbook-xsl" -depends="python" +build_style=gnu-makefile +make_build_args=" + FILESDIR=/usr/share/cppcheck + MATCHCOMPILER=yes + DB2MAN=/usr/share/xsl/docbook/manpages/docbook.xsl" +make_install_args=" + FILESDIR=/usr/share/cppcheck" +make_build_target="cppcheck man" +python_version="3" +hostmakedepends="libxslt docbook-xsl python3" +depends="python3" short_desc="Static analysis of C/C++ code" maintainer="Duncaen " license="GPL-3.0-or-later" homepage="http://cppcheck.sourceforge.net" distfiles="https://github.com/danmar/cppcheck/archive/${version}.tar.gz" -checksum=4aace0420d6aaa900b84b3329c5173c2294e251d2e24d8cba6e38254333dde3f +checksum=37452d378825c7bd78116b4d7073df795fa732207d371ad5348287f811755783 -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 +post_install() { vman cppcheck.1 - vmkdir usr/share/${pkgname} - vcopy cfg/ usr/share/${pkgname}/cfg }