From 598a0909693a922d181932071d1f6532a86a7cef Mon Sep 17 00:00:00 2001 From: Erich Eckner Date: Thu, 15 Jun 2023 20:45:50 +0200 Subject: Revert "manualPorts/pidgin: removed - use upstream" This reverts commit 323168b9e1a47cdc5aecc4532e08b0c8b030e443. --- manualPorts/pidgin/lastVersion.sh | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100755 manualPorts/pidgin/lastVersion.sh (limited to 'manualPorts/pidgin/lastVersion.sh') diff --git a/manualPorts/pidgin/lastVersion.sh b/manualPorts/pidgin/lastVersion.sh new file mode 100755 index 0000000..2648b4b --- /dev/null +++ b/manualPorts/pidgin/lastVersion.sh @@ -0,0 +1,16 @@ +#!/bin/bash + +curl -s 'https://sourceforge.net/projects/pidgin/files/Pidgin/' \ +| sed ' + s@^.* href="/projects/pidgin/files/Pidgin/\([0-9.]\+\)/".*$@\1@ + t + d +' \ +| sort -Vr \ +| while read -r v; do + if curl -s 'https://sourceforge.net/projects/pidgin/files/Pidgin/'"${v}"'/' \ + | grep -qF ' href="https://sourceforge.net/projects/pidgin/files/Pidgin/'"${v}"'/pidgin-'"${v}"'.tar.gz/download"'; then + printf '%s\n' "${v}" + break + fi +done -- cgit v1.2.3-70-g09d2