diff --git a/01-main/packages/openrgb b/01-main/packages/openrgb index c91cc3c67..96321dd24 100644 --- a/01-main/packages/openrgb +++ b/01-main/packages/openrgb @@ -1,16 +1,16 @@ -DEFVER=1 +DEFVER=2 ARCHS_SUPPORTED="amd64 armhf" 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/"