2010-01-18 16:17:43 +01:00
|
|
|
# Template file for 'cppcheck'
|
|
|
|
pkgname=cppcheck
|
2014-05-11 20:06:55 +02:00
|
|
|
version=1.65
|
2014-05-11 21:34:56 +02:00
|
|
|
revision=2
|
2013-04-04 11:03:16 +02:00
|
|
|
hostmakedepends="libxslt docbook-xsl"
|
2010-01-18 16:17:43 +01:00
|
|
|
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"
|
2014-01-09 09:12:14 +01:00
|
|
|
|
|
|
|
do_fetch() {
|
|
|
|
git clone -b ${version} git://github.com/danmar/cppcheck ${pkgname}-${version}
|
|
|
|
}
|
|
|
|
|
|
|
|
do_build() {
|
2014-05-11 21:34:56 +02:00
|
|
|
make CFGDIR=/usr/share/cppcheck/cfg
|
2014-01-09 09:12:14 +01:00
|
|
|
make ${makejobs} DB2MAN=/usr/share/xsl/docbook/manpages/docbook.xsl all man
|
|
|
|
}
|
|
|
|
|
|
|
|
do_install() {
|
2014-05-11 21:34:56 +02:00
|
|
|
make DESTDIR=${DESTDIR} CFGDIR=/usr/share/cppcheck/cfg install
|
2014-01-09 09:12:14 +01:00
|
|
|
vinstall cppcheck.1 644 usr/share/man/man1
|
|
|
|
}
|