void-packages/srcpkgs/cppcheck/template
2014-11-01 19:44:30 +01:00

26 lines
815 B
Plaintext

# Template file for 'cppcheck'
pkgname=cppcheck
version=1.67
revision=1
hostmakedepends="libxslt docbook-xsl git"
short_desc="Static analysis of C/C++ code"
maintainer="Juan RP <xtraeme@gmail.com>"
license="GPL-2"
homepage="http://cppcheck.sourceforge.net"
update_site="https://api.github.com/repos/danmar/cppcheck/tags"
update_pattern='"name":\s*"\K[^\d]*([\d\.]+)(?=")'
do_fetch() {
git clone -b ${version} git://github.com/danmar/cppcheck ${pkgname}-${version}
}
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
}