diff --git a/packages/cppcheck/build.sh b/packages/cppcheck/build.sh new file mode 100644 index 000000000..2e3ea0887 --- /dev/null +++ b/packages/cppcheck/build.sh @@ -0,0 +1,8 @@ +TERMUX_PKG_HOMEPAGE=https://github.com/danmar/cppcheck +TERMUX_PKG_DESCRIPTION="tool for static C/C++ code analysis" +TERMUX_PKG_LICENSE="GPL-3.0" +TERMUX_PKG_VERSION=2.5 +TERMUX_PKG_REVISION=1 +TERMUX_PKG_SRCURL=https://github.com/danmar/cppcheck/archive/$TERMUX_PKG_VERSION.tar.gz +TERMUX_PKG_SHA256=dc27154d799935c96903dcc46653c526c6f4148a6912b77d3a50cb35dabd82e1 +TERMUX_PKG_BLACKLISTED_ARCHES="i686" diff --git a/packages/cppcheck/threadexecuter.patch b/packages/cppcheck/threadexecuter.patch new file mode 100644 index 000000000..46340a046 --- /dev/null +++ b/packages/cppcheck/threadexecuter.patch @@ -0,0 +1,11 @@ +--- cli/threadexecutor.cpp.orig 2019-11-08 23:29:10.428984535 +0000 ++++ ./cli/threadexecutor.cpp 2019-11-08 23:29:51.245623336 +0000 +@@ -143,7 +143,7 @@ + + bool ThreadExecutor::checkLoadAverage(size_t nchildren) + { +-#if defined(__CYGWIN__) || defined(__QNX__) // getloadavg() is unsupported on Cygwin, Qnx. ++#if defined(__CYGWIN__) || defined(__QNX__) || defined(__ANDROID__) // getloadavg() is unsupported on Cygwin, Qnx. + return true; + #else + if (!nchildren || !mSettings.loadAverage) {