Commit 082834c3 authored by Ivan Mazhukin's avatar Ivan Mazhukin Committed by Vitaly Lipatov

epm play reaper: fix getting version (eterbug #17953)

parent 837c1be7
......@@ -8,15 +8,23 @@ URL="https://www.reaper.fm/index.php"
. $(dirname $0)/common.sh
warn_version_is_not_supported
case "$(epm print info -a)" in
x86_64)
arch="x86_64" ;;
x86)
arch="i686" ;;
armhf)
arch="armv7l" ;;
esac
PKGURL=$(eget --list --latest https://www.reaper.fm/download.php "*$arch.tar.xz")
install_pack_pkgurl
if [ "$VERSION" = "*" ] ; then
VERSION="$(eget -O- https://www.reaper.fm/download.php | grep -oE 'REAPER [0-9]+\.[0-9]+(\.[0-9]+)?' | awk '{print $2}' | tr -d '.')"
else
VERSION=$(echo $VERSION | tr -d '.')
fi
PKGURL="https://www.reaper.fm/files/7.x/reaper${VERSION}_linux_${arch}.tar.xz"
install_pack_pkgurl
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment