pkgname: cppcheck pkgver: '2.21.1' pkgrel: '1' pkgdesc: 'A tool for static C/C++ code analysis (CLI only)' url: 'https://cppcheck.sourceforge.net/' arch: x86_64 depends: - python makedepends: - cmake - llvm - pcre2 source: - 'https://github.com/danmar/cppcheck/archive/${pkgver}.tar.gz' sha256sums: - SKIP build: | cd ${pkgname}-${pkgver} export CXXFLAGS+=" -DNDEBUG" cmake -B build \ -S . \ -D CMAKE_INSTALL_PREFIX=/usr \ -D CMAKE_BUILD_TYPE=Release \ -D USE_MATCHCOMPILER=yes \ -D HAVE_RULES=yes \ -D BUILD_GUI=OFF \ -D USE_QT6=OFF \ -D BUILD_SHARED_LIBS:BOOL=OFF \ -D FILESDIR=/usr/share/cppcheck cmake --build build DESTDIR=${PKGDIR} cmake --install build install -Dm755 htmlreport/cppcheck-htmlreport "${PKGDIR}/usr/bin/cppcheck-htmlreport" package: | true