Skip to content

Commit

Permalink
Fix version and URL extraction
Browse files Browse the repository at this point in the history
More upstream twiddling accomodated
  • Loading branch information
philclifford committed Nov 17, 2022
1 parent 0cefe2d commit 7d0310d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions 01-main/packages/openrgb
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@ CODENAMES_SUPPORTED="buster bullseye focal"
if [ "${ACTION}" != "prettylist" ]; then
case "${UPSTREAM_CODENAME}" in
buster|focal)
URL="https://openrgb.org$(curl -s https://openrgb.org/releases.html | grep -o "\"/up_/up_/static/releases/release_[^\"]*${HOST_ARCH}[^\"]*buster[^\"]*\.deb\"" | sort --version-sort | tail -n1 | cut -d "\"" -f 2)"
URL="https://openrgb.org/$(curl -s https://openrgb.org/releases.html | grep -o -E "/releases/release_[[:digit:]]+\.[[:digit:]]+/openrgb_[[:digit:]]+\.[[:digit:]]_${HOST_ARCH}_buster_[[:digit:]]+\.deb" )"
;;
*)
URL="https://openrgb.org$(curl -s https://openrgb.org/releases.html | grep -o "\"/up_/up_/static/releases/release_[^\"]*${HOST_ARCH}[^\"]*bullseye[^\"]*\.deb\"" | sort --version-sort | tail -n1 | cut -d "\"" -f 2)"
URL="https://openrgb.org/$(curl -s https://openrgb.org/releases.html | grep -o -E "/releases/release_[[:digit:]]+\.[[:digit:]]+/openrgb_[[:digit:]]+\.[[:digit:]]_${HOST_ARCH}_bullseye_[[:digit:]]+\.deb" )"
;;
esac
VERSION_PUBLISHED="$(echo "${URL}" | cut -d "_" -f 5)"
VERSION_PUBLISHED="$(echo "${URL}" | grep -o -E '[[:digit:]]+\.[[:digit:]]+'|sort -u)"
fi
PRETTY_NAME="OpenRGB"
WEBSITE="https://openrgb.org/"
Expand Down

0 comments on commit 7d0310d

Please sign in to comment.