extra/cppcheck to 2.12.0-1

This commit is contained in:
Kevin Mihelich 2023-09-16 07:25:31 +00:00
parent debc0d8296
commit cabe4f1824

View file

@ -6,7 +6,7 @@
# - remove makedepend on pandoc, don't generate manuals
pkgname=cppcheck
pkgver=2.11.1
pkgver=2.12.0
pkgrel=1
pkgdesc='A tool for static C/C++ code analysis'
arch=('x86_64')
@ -20,18 +20,19 @@ depends=(
makedepends=(
'git'
'docbook-xsl'
'qt5-tools'
'qt5-base'
'qt6-tools'
'qt6-base'
'qt6-declarative'
'python'
'cmake'
'clang'
)
optdepends=(
'qt5-tools: run cppcheck-gui'
'qt6-tools: run cppcheck-gui'
'python-pygments: cppcheck-htmlreport'
'clang: for cppcheck-gui integration'
)
_commit='13746898140fa229018b57acdb18091942c8ea05'
_commit='f2f1fb0bca5f23aac8f02fb9c09e4529a7935749'
source=(
"$pkgname::git+https://github.com/danmar/cppcheck.git#commit=$_commit"
'translations-location.patch'
@ -52,6 +53,9 @@ prepare() {
# fix location of translations
patch -p1 -i "$srcdir/translations-location.patch"
# https://github.com/danmar/cppcheck/pull/5350
git revert --no-commit 499f566e9dcdf7d033145c4eb613dd4a4738ab0a
}
build() {
@ -68,15 +72,16 @@ build() {
cmake \
-B build \
-S "$pkgname" \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_BUILD_TYPE=RelWithDebInfo \
-DUSE_MATCHCOMPILER=ON \
-DHAVE_RULES=ON \
-DBUILD_GUI=ON \
-DBUILD_SHARED_LIBS=OFF \
-DBUILD_TESTS=ON \
-DFILESDIR=/usr/share/cppcheck \
-DUSE_BUNDLED_TINYXML2=OFF
-D CMAKE_INSTALL_PREFIX=/usr \
-D CMAKE_BUILD_TYPE=RelWithDebInfo \
-D USE_MATCHCOMPILER=ON \
-D HAVE_RULES=ON \
-D BUILD_GUI=ON \
-D BUILD_SHARED_LIBS=OFF \
-D BUILD_TESTS=ON \
-D FILESDIR=/usr/share/cppcheck \
-D USE_BUNDLED_TINYXML2=OFF \
-D USE_QT6=ON
cmake --build build
}