void-packages/srcpkgs/cppcheck/template

26 lines
717 B
Text
Raw Normal View History

# Template file for 'cppcheck'
pkgname=cppcheck
2014-05-11 18:06:55 +00:00
version=1.65
revision=3
hostmakedepends="libxslt docbook-xsl"
short_desc="Static analysis of C/C++ code"
maintainer="Juan RP <xtraeme@gmail.com>"
2011-10-14 15:58:04 +00:00
license="GPL-2"
2012-09-11 06:48:17 +00:00
homepage="http://cppcheck.sourceforge.net"
2014-01-09 08:12:14 +00:00
do_fetch() {
git clone -b ${version} git://github.com/danmar/cppcheck ${pkgname}-${version}
}
do_build() {
make CFGDIR=/usr/share/cppcheck/cfg
make ${makejobs} DB2MAN=/usr/share/xsl/docbook/manpages/docbook.xsl all man
2014-01-09 08:12:14 +00:00
}
do_install() {
make DESTDIR=${DESTDIR} CFGDIR=/usr/share/cppcheck/cfg install
vinstall cppcheck.1 644 usr/share/man/man1
vmkdir usr/share/${pkgname} 755
vcopy cfg/ usr/share/${pkgname}/cfg
2014-01-09 08:12:14 +00:00
}