PaganOS Luna 0.6.0
PL EN DE
🔒 Repository is read-only – file editing is disabled.

recipes/gui/cppcheck/PAGBUILD.yaml main

42 lines Raw ← Back
123456789101112131415161718192021222324252627282930313233343536373839404142
pkgname: cppcheck
pkgver: '2.22.0'
pkgrel: '1'
pkgdesc: 'A tool for static C/C++ code analysis (CLI only)'
url: 'https://cppcheck.sourceforge.net/'
arch: x86_64
depends:
- python
- pcre
makedepends:
- cmake
- llvm
- pcre2

source:
- 'https://github.com/danmar/cppcheck/archive/${pkgver}.tar.gz'

sha256sums:
- d74945deb2d50393430e07596b766f8a779512c7f60dac2a30ea64e059ece57b

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