From 0bb2fe5ce7d0ea9bffc550bf60062673024948c7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lucio=20Andr=C3=A9s=20Illanes=20Albornoz=20=28arab=2C=20vx?= =?UTF-8?q?p=29?= Date: Fri, 18 Nov 2016 15:36:39 +0100 Subject: subr/check_updates.subr: preliminary support for apk_tools and bzip2. --- vars/check_updates.vars | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) (limited to 'vars/check_updates.vars') diff --git a/vars/check_updates.vars b/vars/check_updates.vars index 6342c5c5..d7ad5bea 100644 --- a/vars/check_updates.vars +++ b/vars/check_updates.vars @@ -2,6 +2,35 @@ # . ./build.vars and set -o errexit -o noglob are assumed. # +pkg_apk_tools_check_updates() { + case "${1}" in + get_fnames) + cu_fname="${cu_url##*/}"; + cu_fname_base="apk-tools"; + cu_fname_ext="${cu_fname#${cu_fname_base}-${cu_version}.}"; + cu_url_index="http://git.alpinelinux.org/cgit/apk-tools/"; + cu_fnames="$(wget ${WGET_ARGS} -qO- "${cu_url_index}" |\ + sed -n '//s/^.*The current version is 1.0.6<\/b>/s/^.*

The current version is \(.\+\)<\/b>.*$/bzip2-\1/p')"; + ;; + get_version) + cu_fname_version="${cu_fname#bzip2-}"; + ;; + esac; +}; + pkg_infounzip_check_updates() { case "${1}" in get_fnames) -- cgit v1.2.3