cruxports/webkitgtk-60/.watch

11 lines
274 B
Plaintext
Raw Normal View History

2023-02-17 15:00:33 -05:00
#!/usr/bin/env bash
found_stable=0
curl -s -L "https://webkitgtk.org/" | \
while read -r line; do
[ "$found_stable" -eq 1 ] && { wkver=${line%.tar.xz*}; wkver=${wkver#*webkitgtk-}; \
echo "$wkver"; break; }
[[ "$line" =~ "Stable tarball" ]] && found_stable=1
done