← recipes

Commit 455708a

0
plików
+0
dodanych
-0
usuniętych
@@ -1,33 +1,28 @@
1 1 pkgname: cppcheck
2 2 pkgver: '2.21.1'
3 3 pkgrel: '1'
4 -pkgdesc: 'A tool for static C/C++ code analysis'
4 +pkgdesc: 'A tool for static C/C++ code analysis (CLI only)'
5 5 url: 'http://cppcheck.sourceforge.net/'
6 6 arch: x86_64
7 -depends: []
7 +depends:
8 +- python
8 9 makedepends:
9 -- 'qt6-base'
10 -- 'qt6-tools'
11 10 - cmake
12 11 - llvm
12 +- pcre2
13 13
14 14 source:
15 15 - 'https://github.com/danmar/cppcheck/archive/${pkgver}.tar.gz'
16 -- 'translations-location.patch'
17 16
18 17 sha256sums:
19 18 - SKIP
20 -- SKIP
21 19
22 20 footprint: |
23 21 drwxr-xr-x root/root usr/
24 22 drwxr-xr-x root/root usr/bin/
25 23 -rwxr-xr-x root/root usr/bin/cppcheck
26 - -rwxr-xr-x root/root usr/bin/cppcheck-gui
27 24 -rwxr-xr-x root/root usr/bin/cppcheck-htmlreport
28 25 drwxr-xr-x root/root usr/share/
29 - drwxr-xr-x root/root usr/share/applications/
30 - -rw-r--r-- root/root usr/share/applications/cppcheck-gui.desktop
31 26 drwxr-xr-x root/root usr/share/cppcheck/
32 27 drwxr-xr-x root/root usr/share/cppcheck/addons/
33 28 -rw-r--r-- root/root usr/share/cppcheck/addons/ROS_naming.json
@@ -62,21 +57,6 @@ footprint: |
62 57 -rw-r--r-- root/root usr/share/cppcheck/cfg/gtk.cfg
63 58 -rw-r--r-- root/root usr/share/cppcheck/cfg/icu.cfg
64 59 -rw-r--r-- root/root usr/share/cppcheck/cfg/kde.cfg
65 - drwxr-xr-x root/root usr/share/cppcheck/cfg/lang/
66 - -rw-r--r-- root/root usr/share/cppcheck/cfg/lang/cppcheck_de.qm
67 - -rw-r--r-- root/root usr/share/cppcheck/cfg/lang/cppcheck_es.qm
68 - -rw-r--r-- root/root usr/share/cppcheck/cfg/lang/cppcheck_fi.qm
69 - -rw-r--r-- root/root usr/share/cppcheck/cfg/lang/cppcheck_fr.qm
70 - -rw-r--r-- root/root usr/share/cppcheck/cfg/lang/cppcheck_it.qm
71 - -rw-r--r-- root/root usr/share/cppcheck/cfg/lang/cppcheck_ja.qm
72 - -rw-r--r-- root/root usr/share/cppcheck/cfg/lang/cppcheck_ka.qm
73 - -rw-r--r-- root/root usr/share/cppcheck/cfg/lang/cppcheck_ko.qm
74 - -rw-r--r-- root/root usr/share/cppcheck/cfg/lang/cppcheck_nl.qm
75 - -rw-r--r-- root/root usr/share/cppcheck/cfg/lang/cppcheck_ru.qm
76 - -rw-r--r-- root/root usr/share/cppcheck/cfg/lang/cppcheck_sr.qm
77 - -rw-r--r-- root/root usr/share/cppcheck/cfg/lang/cppcheck_sv.qm
78 - -rw-r--r-- root/root usr/share/cppcheck/cfg/lang/cppcheck_zh_CN.qm
79 - -rw-r--r-- root/root usr/share/cppcheck/cfg/lang/cppcheck_zh_TW.qm
80 60 -rw-r--r-- root/root usr/share/cppcheck/cfg/libcerror.cfg
81 61 -rw-r--r-- root/root usr/share/cppcheck/cfg/libcurl.cfg
82 62 -rw-r--r-- root/root usr/share/cppcheck/cfg/libsigc++.cfg
@@ -127,18 +107,9 @@ footprint: |
127 107 -rw-r--r-- root/root usr/share/cppcheck/platforms/pic8.xml
128 108 -rw-r--r-- root/root usr/share/cppcheck/platforms/riscv32.xml
129 109 -rw-r--r-- root/root usr/share/cppcheck/platforms/riscv64.xml
130 - drwxr-xr-x root/root usr/share/icons/
131 - drwxr-xr-x root/root usr/share/icons/hicolor/
132 - drwxr-xr-x root/root usr/share/icons/hicolor/64x64/
133 - drwxr-xr-x root/root usr/share/icons/hicolor/64x64/apps/
134 - -rw-r--r-- root/root usr/share/icons/hicolor/64x64/apps/cppcheck-gui.png
135 - drwxr-xr-x root/root usr/share/icons/hicolor/scalable/
136 - drwxr-xr-x root/root usr/share/icons/hicolor/scalable/apps/
137 - -rw-r--r-- root/root usr/share/icons/hicolor/scalable/apps/cppcheck-gui.svg
138 110
139 111 build: |
140 112 cd ${pkgname}-${pkgver}
141 - patch -Np1 -i ../translations-location.patch
142 113 export CXXFLAGS+=" -DNDEBUG"
143 114
144 115 cmake -B build \
@@ -147,18 +118,15 @@ build: |
147 118 -D CMAKE_BUILD_TYPE=Release \
148 119 -D USE_MATCHCOMPILER=yes \
149 120 -D HAVE_RULES=yes \
150 - -D BUILD_GUI=yes \
121 + -D BUILD_GUI=OFF \
122 + -D USE_QT6=OFF \
151 123 -D BUILD_SHARED_LIBS:BOOL=OFF \
152 - -D FILESDIR=/usr/share/cppcheck \
153 - -D USE_QT6=ON
124 + -D FILESDIR=/usr/share/cppcheck
154 125
155 126 cmake --build build
156 127 DESTDIR=${PKGDIR} cmake --install build
157 128
158 -
159 - #Fix location of language files
160 - install -vd "${PKGDIR}"/usr/share/cppcheck/cfg/lang
161 - mv ${PKGDIR}/usr/bin/cppcheck_*.qm ${PKGDIR}/usr/share/cppcheck/cfg/lang/
129 + install -Dm755 htmlreport/cppcheck-htmlreport "${PKGDIR}/usr/bin/cppcheck-htmlreport"
162 130
163 131 package: |
164 - true
132 + true