diff --git a/README.md b/README.md index b71c307..3e4a49b 100644 --- a/README.md +++ b/README.md @@ -85,7 +85,7 @@ You can disable automatic downloading of dependencies and build them manually. First, download, build and install Roc Toolkit into the system as described on [this page](https://roc-streaming.org/toolkit/docs/building/user_cookbook.html). -Then download and unpack PulseAudio source code [from here](https://freedesktop.org/software/pulseaudio/releases/). There is no need to configure and build it, only source code is needed. +Then download and unpack PulseAudio source code [from here](https://distributions.freedesktop.org/software/pulseaudio/releases/). There is no need to configure and build it, only source code is needed. > Note: PulseAudio doesn't provide official API for out-of-tree modules. This is the reason why we need full PulseAudio source code to build modules. diff --git a/cmake/download_pulseaudio.cmake b/cmake/download_pulseaudio.cmake index 9514cae..bebe806 100644 --- a/cmake/download_pulseaudio.cmake +++ b/cmake/download_pulseaudio.cmake @@ -1,8 +1,12 @@ include(ExternalProject) +set(PULSEAUDIO_RELEASES_URL + "https://distributions.freedesktop.org/software/pulseaudio/releases" +) + ExternalProject_Add(pulseaudio URL - "https://distributions.freedesktop.org/software/pulseaudio/releases/pulseaudio-${PULSEAUDIO_VERSION}.tar.gz" + "${PULSEAUDIO_RELEASES_URL}/pulseaudio-${PULSEAUDIO_VERSION}.tar.gz" SOURCE_DIR "${CMAKE_CURRENT_BINARY_DIR}/pulseaudio-src" CONFIGURE_COMMAND "" BUILD_COMMAND "" diff --git a/scripts/download_pulseaudio.sh b/scripts/download_pulseaudio.sh index f87bde8..d2d2485 100755 --- a/scripts/download_pulseaudio.sh +++ b/scripts/download_pulseaudio.sh @@ -6,5 +6,5 @@ ver="$2" mkdir -p "$dir" -wget -qO - "https://freedesktop.org/software/pulseaudio/releases/pulseaudio-$ver.tar.gz" \ +wget -qO - "https://distributions.freedesktop.org/software/pulseaudio/releases/pulseaudio-$ver.tar.gz" \ | tar --strip-components=1 -C "$dir" -xzf -