community/cppcheck to 2.0-1

This commit is contained in:
Kevin Mihelich 2020-05-11 20:52:39 +00:00
parent 58a223bdc1
commit 22c6076f4f

View file

@ -5,8 +5,8 @@
# - remove makedepend on pandoc, don't generate manuals
pkgname=cppcheck
pkgver=1.90
pkgrel=2
pkgver=2.0
pkgrel=1
pkgdesc="A tool for static C/C++ code analysis"
arch=('x86_64')
url="http://cppcheck.sourceforge.net/"
@ -14,10 +14,11 @@ license=('GPL')
depends=('python-pygments' 'tinyxml2')
makedepends=('docbook-xsl' 'qt5-tools' 'qt5-base' 'python' 'cmake')
optdepends=('qt5-base: run cppcheck-gui'
'python-pygments: cppcheck-htmlreport')
'python-pygments: cppcheck-htmlreport'
'clang-tidy: for cppcheck-gui integration')
source=($pkgname-$pkgver.tar.gz::https://github.com/danmar/cppcheck/archive/${pkgver}.tar.gz
translations-location.patch cppcheck-1.90-tinyxml.patch)
sha1sums=('852d69a60b6caf023a3420943ebdc29e99fd0349'
sha1sums=('a6e5bdba6a453d5931a9e8ff2e2122255402dcb3'
'03b0888438cf92ccdcbf307dbc3c35e65c91b844'
'12d885e1b0a0a899faa190182a9ad5a8e53476a5')
@ -26,6 +27,8 @@ prepare() {
patch -Np1 -i $srcdir/translations-location.patch
patch -Np1 -i $srcdir/cppcheck-1.90-tinyxml.patch
sed -i 's/2.0/2.0.0/' cmake/versions.cmake
# Make sure bundled tinyxml is not used
rm -r externals/tinyxml