void-packages/srcpkgs/cppcheck/template

26 lines
815 B
Plaintext
Raw Normal View History

# Template file for 'cppcheck'
pkgname=cppcheck
2014-10-26 09:06:56 +01:00
version=1.67
2014-08-02 17:52:26 +02:00
revision=1
hostmakedepends="libxslt docbook-xsl git"
short_desc="Static analysis of C/C++ code"
maintainer="Juan RP <xtraeme@gmail.com>"
2011-10-14 17:58:04 +02:00
license="GPL-2"
2012-09-11 08:48:17 +02:00
homepage="http://cppcheck.sourceforge.net"
update_site="https://api.github.com/repos/danmar/cppcheck/tags"
update_pattern='"name":\s*"\K[^\d]*([\d\.]+)(?=")'
2014-01-09 09:12:14 +01:00
do_fetch() {
git clone -b ${version} git://github.com/danmar/cppcheck ${pkgname}-${version}
}
do_build() {
2014-08-02 17:52:26 +02:00
make ${makejobs} CFGDIR=/usr/share/cppcheck/cfg
make ${makejobs} DB2MAN=/usr/share/xsl/docbook/manpages/docbook.xsl all man
2014-01-09 09:12:14 +01:00
}
do_install() {
make DESTDIR=${DESTDIR} CFGDIR=/usr/share/cppcheck/cfg install
2014-08-02 17:52:26 +02:00
vman cppcheck.1
vmkdir usr/share/${pkgname}
vcopy cfg/ usr/share/${pkgname}/cfg
2014-01-09 09:12:14 +01:00
}