summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorLucio Andrés Illanes Albornoz (arab, vxp) <l.illanes@gmx.de>2016-11-18 15:49:41 +0100
committerLucio Andrés Illanes Albornoz (arab, vxp) <l.illanes@gmx.de>2016-11-18 15:49:41 +0100
commit4c0b4b6cf5a46f171bf9374824d1ce4024b57e89 (patch)
treed104e75a6d7b3bc9b3d05e7c7a6a6041d9b40c86
parenta85721403945bfe0f9b7e2a1bb2142daa4a51c2a (diff)
downloadmidipix_build-4c0b4b6cf5a46f171bf9374824d1ce4024b57e89.tar.bz2
midipix_build-4c0b4b6cf5a46f171bf9374824d1ce4024b57e89.tar.xz
subr/check_updates.subr: preliminary support for lynx and pacman.
-rw-r--r--vars/check_updates.vars35
1 files changed, 35 insertions, 0 deletions
diff --git a/vars/check_updates.vars b/vars/check_updates.vars
index 07ade3b8..c0169389 100644
--- a/vars/check_updates.vars
+++ b/vars/check_updates.vars
@@ -76,6 +76,25 @@ pkg_libgpg_error_check_updates() {
esac;
};
+pkg_lynx_check_updates() {
+ case "${1}" in
+ get_fnames)
+ cu_fname="${cu_url##*/}";
+ cu_fname_base="lynx";
+ cu_fname_ext="${cu_fname#${cu_fname_base}${cu_version}.}";
+ ;;
+ get_version)
+ if [ "${cu_fname#${cu_fname_base}-cur}" = "${cu_fname}" ]\
+ && [ "${cu_fname#*rel\.}" != "${cu_fname}" ]\
+ && [ "${cu_fname#${cu_fname_base}}" != "${cu_fname}" ]\
+ && [ "${cu_fname%.${cu_fname_ext}}" != "${cu_fname}" ]; then
+ cu_fname_version="${cu_fname%.${cu_fname_ext}}";
+ cu_fname_version="${cu_fname_version#lynx}";
+ fi;
+ ;;
+ esac;
+};
+
pkg_libpthread_stubs_check_updates() {
case "${1}" in
get_fnames)
@@ -99,6 +118,22 @@ pkg_mksh_check_updates() {
esac;
};
+pkg_pacman_check_updates() {
+ case "${1}" in
+ get_fnames)
+ cu_fname="${cu_url##*/}";
+ cu_fname_base="pacman";
+ cu_fname_ext="${cu_fname#${cu_fname_base}-${cu_version}.}";
+ cu_url_index="https://git.archlinux.org/pacman.git/";
+ cu_fnames="$(wget ${WGET_ARGS} -qO- "${cu_url_index}" |\
+ sed -n '/<a href='\''\/pacman.git\/tag\/?h=v[0-9.]\+'\''>/s/^.*<a href='\''\/pacman.git\/tag\/?h=v\([0-9.]\+\).*$/pacman-\1/p')";
+ ;;
+ get_version)
+ cu_fname_version="${cu_fname#pacman-}";
+ ;;
+ esac;
+};
+
pkg_rxvt_unicode_check_updates() {
case "${1}" in
get_fnames)