cppcheck: extract update_* to external update file

This commit is contained in:
Eivind Uggedal 2015-01-15 11:17:23 +00:00
parent 52db787b29
commit 3736018a81
2 changed files with 2 additions and 2 deletions

View File

@ -7,8 +7,6 @@ short_desc="Static analysis of C/C++ code"
maintainer="Juan RP <xtraeme@gmail.com>"
license="GPL-2"
homepage="http://cppcheck.sourceforge.net"
update_site="https://api.github.com/repos/danmar/cppcheck/tags"
update_pattern='"name":\s*"\K[^\d]*([\d\.]+)(?=")'
do_fetch() {
git clone -b ${version} git://github.com/danmar/cppcheck ${pkgname}-${version}

2
srcpkgs/cppcheck/update Normal file
View File

@ -0,0 +1,2 @@
site="https://api.github.com/repos/danmar/cppcheck/tags"
pattern='"name":\s*"\K[^\d]*([\d\.]+)(?=")'