void-packages/srcpkgs/cppcheck/template
2018-10-16 10:11:55 -03:00

24 lines
742 B
Bash

# Template file for 'cppcheck'
pkgname=cppcheck
version=1.85
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=dc17ecf2f6bacbee32141fe7713747de9026bbb36207bfad2d73a5185c6b14a3
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
}