cppcheck: copy the cfgs into CFGDIR; revbump

This commit is contained in:
Jan S 2014-05-11 22:55:36 +02:00
parent 9eec68fb2f
commit 587ff4ca53

View file

@ -1,7 +1,7 @@
# Template file for 'cppcheck' # Template file for 'cppcheck'
pkgname=cppcheck pkgname=cppcheck
version=1.65 version=1.65
revision=2 revision=3
hostmakedepends="libxslt docbook-xsl" hostmakedepends="libxslt docbook-xsl"
short_desc="Static analysis of C/C++ code" short_desc="Static analysis of C/C++ code"
maintainer="Juan RP <xtraeme@gmail.com>" maintainer="Juan RP <xtraeme@gmail.com>"
@ -13,11 +13,13 @@ do_fetch() {
} }
do_build() { do_build() {
make CFGDIR=/usr/share/cppcheck/cfg make CFGDIR=/usr/share/cppcheck/cfg
make ${makejobs} DB2MAN=/usr/share/xsl/docbook/manpages/docbook.xsl all man make ${makejobs} DB2MAN=/usr/share/xsl/docbook/manpages/docbook.xsl all man
} }
do_install() { do_install() {
make DESTDIR=${DESTDIR} CFGDIR=/usr/share/cppcheck/cfg install make DESTDIR=${DESTDIR} CFGDIR=/usr/share/cppcheck/cfg install
vinstall cppcheck.1 644 usr/share/man/man1 vinstall cppcheck.1 644 usr/share/man/man1
vmkdir usr/share/${pkgname} 755
vcopy cfg/ usr/share/${pkgname}/cfg
} }