diff options
author | Andrei Karas <akaras@inbox.ru> | 2017-01-27 01:06:40 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2017-01-27 01:06:40 +0300 |
commit | bcc8cdc27946b0c4833ab70312d58a76f042c73d (patch) | |
tree | c22f21abd3f4fc1f1c63029353f416096e13e8f0 /packages/cppcheck.sh | |
parent | 3388f1cd95db3eebfe69e923229b521899c12f09 (diff) | |
download | spm-bcc8cdc27946b0c4833ab70312d58a76f042c73d.tar.gz spm-bcc8cdc27946b0c4833ab70312d58a76f042c73d.tar.bz2 spm-bcc8cdc27946b0c4833ab70312d58a76f042c73d.tar.xz spm-bcc8cdc27946b0c4833ab70312d58a76f042c73d.zip |
Add cppcheck package.
Diffstat (limited to 'packages/cppcheck.sh')
-rwxr-xr-x | packages/cppcheck.sh | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/packages/cppcheck.sh b/packages/cppcheck.sh new file mode 100755 index 0000000..6e400dd --- /dev/null +++ b/packages/cppcheck.sh @@ -0,0 +1,19 @@ +#!/bin/bash + +function package_build { + run_git_switch_branch master + + run_cmake -DHAVE_RULES=ON + + run_make + run_make_install +} + +function package_get_source { + run_git_clone https://github.com/danmar/cppcheck.git +} + +function package_use { + env_path "bin" + env_path "share/CppCheck" +} |