community/cppcheck to 2.4.1-2

This commit is contained in:
Kevin Mihelich 2021-06-14 17:48:46 +00:00
parent 0e64d719fe
commit a0f23f4db2

View file

@ -6,24 +6,27 @@
pkgname=cppcheck
pkgver=2.4.1
pkgrel=1
pkgrel=2
pkgdesc="A tool for static C/C++ code analysis"
arch=('x86_64')
url="http://cppcheck.sourceforge.net/"
license=('GPL')
depends=('python-pygments' 'tinyxml2')
makedepends=('docbook-xsl' 'qt5-tools' 'qt5-base' 'python' 'cmake' 'clang')
optdepends=('qt5-base: run cppcheck-gui'
optdepends=('qt5-tools: run cppcheck-gui'
'python-pygments: cppcheck-htmlreport'
'clang: for cppcheck-gui integration')
source=($pkgname-$pkgver.tar.gz::https://github.com/danmar/cppcheck/archive/${pkgver}.tar.gz
translations-location.patch)
translations-location.patch
https://github.com/danmar/cppcheck/commit/8d682884.patch)
sha1sums=('b2b19fa617aa4f2bd67609a15ba1f737909dbf66'
'03b0888438cf92ccdcbf307dbc3c35e65c91b844')
'03b0888438cf92ccdcbf307dbc3c35e65c91b844'
'7846c2e482320c2f6f9352dc134fdf0ad39faec8')
prepare() {
cd "${pkgname}-${pkgver}"
patch -Np1 -i $srcdir/translations-location.patch
patch -p1 < ../8d682884.patch # Fix build with GCC 11
mkdir build
}