void-packages/srcpkgs/cppcheck/template
2019-02-09 13:21:21 -02:00

24 lines
742 B
Bash

# Template file for 'cppcheck'
pkgname=cppcheck
version=1.87
revision=1
hostmakedepends="libxslt docbook-xsl"
depends="python"
short_desc="Static analysis of C/C++ code"
maintainer="maxice8 <thinkabit.ukim@gmail.com>"
license="GPL-3.0-or-later"
homepage="http://cppcheck.sourceforge.net"
distfiles="https://github.com/danmar/cppcheck/archive/${version}.tar.gz"
checksum=ea7ac1cd2f5c00ecffd596fd0f7281cba44308e565a634fae02b77ecd927c153
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
}