From 3736018a815d93dcb24809df2d48a01d2d79e3ae Mon Sep 17 00:00:00 2001 From: Eivind Uggedal Date: Thu, 15 Jan 2015 11:17:23 +0000 Subject: [PATCH] cppcheck: extract update_* to external update file --- srcpkgs/cppcheck/template | 2 -- srcpkgs/cppcheck/update | 2 ++ 2 files changed, 2 insertions(+), 2 deletions(-) create mode 100644 srcpkgs/cppcheck/update diff --git a/srcpkgs/cppcheck/template b/srcpkgs/cppcheck/template index 37ba0a4416a..085115ff4b9 100644 --- a/srcpkgs/cppcheck/template +++ b/srcpkgs/cppcheck/template @@ -7,8 +7,6 @@ short_desc="Static analysis of C/C++ code" maintainer="Juan RP " 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} diff --git a/srcpkgs/cppcheck/update b/srcpkgs/cppcheck/update new file mode 100644 index 00000000000..c46458e13a8 --- /dev/null +++ b/srcpkgs/cppcheck/update @@ -0,0 +1,2 @@ +site="https://api.github.com/repos/danmar/cppcheck/tags" +pattern='"name":\s*"\K[^\d]*([\d\.]+)(?=")'