26 lines
721 B
Plaintext
26 lines
721 B
Plaintext
# Template file for 'cppcheck'
|
|
pkgname=cppcheck
|
|
version=1.65
|
|
revision=3
|
|
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"
|
|
|
|
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
|
|
}
|
|
|
|
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
|
|
}
|