mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2025-02-16 23:57:11 +00:00
community/cppcheck to 2.7-1
This commit is contained in:
parent
c7e69cfcc8
commit
956975f4a4
1 changed files with 9 additions and 9 deletions
|
@ -6,7 +6,7 @@
|
|||
# - remove makedepend on pandoc, don't generate manuals
|
||||
|
||||
pkgname=cppcheck
|
||||
pkgver=2.6.3
|
||||
pkgver=2.7
|
||||
pkgrel=1
|
||||
pkgdesc="A tool for static C/C++ code analysis"
|
||||
arch=('x86_64')
|
||||
|
@ -30,7 +30,8 @@ optdepends=(
|
|||
'python-pygments: cppcheck-htmlreport'
|
||||
'clang: for cppcheck-gui integration'
|
||||
)
|
||||
_commit='3e518e64d0f1fb1e8b71f2d0e8c07d36e31d0ffc'
|
||||
options=('debug')
|
||||
_commit='6ba6567ad897d56741159f8af90fc354ae050e61'
|
||||
source=(
|
||||
"$pkgname::git+https://github.com/danmar/cppcheck.git#commit=$_commit"
|
||||
'translations-location.patch'
|
||||
|
@ -65,23 +66,22 @@ build() {
|
|||
-B build \
|
||||
-S "$pkgname" \
|
||||
-DCMAKE_INSTALL_PREFIX=/usr \
|
||||
-DCMAKE_BUILD_TYPE=Release \
|
||||
-DCMAKE_BUILD_TYPE=RelWithDebInfo \
|
||||
-DUSE_MATCHCOMPILER=yes \
|
||||
-DHAVE_RULES=yes \
|
||||
-DBUILD_GUI=yes \
|
||||
-DBUILD_SHARED_LIBS=no \
|
||||
-DBUILD_TESTS=yes \
|
||||
-DBUILD_TESTS=no \
|
||||
-DFILESDIR=/usr/share/cppcheck \
|
||||
-DUSE_BUNDLED_TINYXML2=no
|
||||
|
||||
cmake --build build
|
||||
}
|
||||
|
||||
|
||||
check() {
|
||||
cd build/bin
|
||||
./testrunner -g -q
|
||||
}
|
||||
#check() {
|
||||
# cd build/bin
|
||||
# ./testrunner -g -q
|
||||
#}
|
||||
|
||||
package() {
|
||||
DESTDIR="$pkgdir" cmake --install build
|
||||
|
|
Loading…
Reference in a new issue