summaryrefslogtreecommitdiffhomepage
path: root/vars
diff options
context:
space:
mode:
Diffstat (limited to 'vars')
-rw-r--r--vars/check_updates.vars29
1 files changed, 29 insertions, 0 deletions
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 '/<a href='\''\/cgit\/apk-tools\/tag\/?h=v[0-9.]\+'\''>/s/^.*<a href='\''\/cgit\/apk-tools\/tag\/?h=v\([0-9.]\+\).*$/apk-tools-\1/p')";
+ ;;
+ get_version)
+ cu_fname_version="${cu_fname#apk-tools-}";
+ ;;
+ esac;
+};
+
+pkg_bzip2_check_updates() {
+ case "${1}" in
+ get_fnames)
+ cu_url_index="http://www.bzip.org/";
+ cu_fnames="$(wget ${WGET_ARGS} -qO- "${cu_url_index}" |\
+ sed -n '/<p>The current version is <b>1.0.6<\/b>/s/^.*<p>The current version is <b>\(.\+\)<\/b>.*$/bzip2-\1/p')";
+ ;;
+ get_version)
+ cu_fname_version="${cu_fname#bzip2-}";
+ ;;
+ esac;
+};
+
pkg_infounzip_check_updates() {
case "${1}" in
get_fnames)