summaryrefslogtreecommitdiffhomepage
path: root/vars
diff options
context:
space:
mode:
authorLucio Andrés Illanes Albornoz (arab, vxp) <l.illanes@gmx.de>2016-11-18 15:36:39 +0100
committerLucio Andrés Illanes Albornoz (arab, vxp) <l.illanes@gmx.de>2016-11-18 15:36:39 +0100
commit0bb2fe5ce7d0ea9bffc550bf60062673024948c7 (patch)
tree87efddbdea4a53fe3f51c618b4b54f8ba0c3cc3f /vars
parent4489045a68486a2641a09195ba98b023094a20fc (diff)
downloadmidipix_build-0bb2fe5ce7d0ea9bffc550bf60062673024948c7.tar.bz2
midipix_build-0bb2fe5ce7d0ea9bffc550bf60062673024948c7.tar.xz
subr/check_updates.subr: preliminary support for apk_tools and bzip2.
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)