void-packages/srcpkgs/cppcheck/template
2015-09-05 08:42:24 +02:00

22 lines
749 B
Bash

# Template file for 'cppcheck'
pkgname=cppcheck
version=1.70
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=4095de598b5cce9a06e90458a90f46e0307baeaab8a947dae73f287eda3c171f
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
}