blob: 25c1f2a7da637286ff8eaf58f3749111d4c0bcd8 (
plain)
1 # Description: Static analysis tool for C/C++ code
2 # URL: http://cppcheck.sourceforge.net/
3 # Maintainer: John Vogel, jvogel4 at stny dot rr dot com
4 # Depends on: libpcre python3-pygments docbook-xsl
5
6 name=cppcheck
7 version=2.1
8 release=1
9 source=(https://github.com/danmar/$name/archive/$version/$name-$version.tar.gz)
10
11 build() {
12 cd $name-$version
13
14 sed -i -e 's,python,python3,' htmlreport/cppcheck-htmlreport
15
16 make install \
17 HAVE_RULES=yes \
18 MATCHCOMPILER=yes \
19 FILESDIR=/usr/share/cppcheck \
20 DESTDIR=$PKG
21
22 make man DB2MAN=/usr/share/xml/docbook/xsl-stylesheets/manpages/docbook.xsl
23 install -Dm 0644 $name.1 $PKG/usr/share/man/man1/$name.1
24 }
|