diff options
author | Erich Eckner <git@eckner.net> | 2023-06-15 20:45:50 +0200 |
---|---|---|
committer | Erich Eckner <git@eckner.net> | 2023-06-15 20:45:50 +0200 |
commit | 598a0909693a922d181932071d1f6532a86a7cef (patch) | |
tree | e8af00fc6e632e528d159619316c89b3eee14ce6 /manualPorts/pidgin/lastVersion.sh | |
parent | 6bc2c23dd609e08c86ab947e51f1d6fb886d1d6d (diff) | |
download | crux-ports-598a0909693a922d181932071d1f6532a86a7cef.tar.xz |
Revert "manualPorts/pidgin: removed - use upstream"
This reverts commit 323168b9e1a47cdc5aecc4532e08b0c8b030e443.
Diffstat (limited to 'manualPorts/pidgin/lastVersion.sh')
-rwxr-xr-x | manualPorts/pidgin/lastVersion.sh | 16 |
1 files changed, 16 insertions, 0 deletions
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 |