contrib/cppcheck/Pkgfile

25 lines
663 B
Plaintext
Raw Normal View History

2016-06-10 13:42:28 +02:00
# Description: Static analysis tool for C/C++ code
# URL: http://cppcheck.sourceforge.net/
2018-02-18 13:18:27 +01:00
# Maintainer: John Vogel, jvogel4 at stny dot rr dot com
# Depends on: libpcre python3-pygments docbook-xsl
2016-06-10 13:42:28 +02:00
name=cppcheck
2020-10-21 10:30:09 +02:00
version=2.2
2016-06-10 13:42:28 +02:00
release=1
2017-11-25 19:20:25 +01:00
source=(https://github.com/danmar/$name/archive/$version/$name-$version.tar.gz)
2016-06-10 13:42:28 +02:00
build() {
cd $name-$version
sed -i -e 's,python,python3,' htmlreport/cppcheck-htmlreport
make install \
HAVE_RULES=yes \
MATCHCOMPILER=yes \
FILESDIR=/usr/share/cppcheck \
DESTDIR=$PKG
2016-06-10 13:42:28 +02:00
make man DB2MAN=/usr/share/xml/docbook/xsl-stylesheets/manpages/docbook.xsl
install -Dm 0644 $name.1 $PKG/usr/share/man/man1/$name.1
2016-06-10 13:42:28 +02:00
}