Move prebuilt-deps/ to app/

The prebuilt dependencies are specific to the client app (not the
server).

This also avoids to reference the parent directory (../) from
app/meson.build.
This commit is contained in:
Romain Vimont
2022-02-09 23:10:38 +01:00
parent 8498a2e8a6
commit 8d583d36e2
8 changed files with 29 additions and 29 deletions

22
app/prebuilt-deps/common Executable file
View File

@@ -0,0 +1,22 @@
PREBUILT_DATA_DIR=data
checksum() {
local file="$1"
local sum="$2"
echo "$file: verifying checksum..."
echo "$sum $file" | sha256sum -c
}
get_file() {
local url="$1"
local file="$2"
local sum="$3"
if [[ -f "$file" ]]
then
echo "$file: found"
else
echo "$file: not found, downloading..."
wget "$url" -O "$file"
fi
checksum "$file" "$sum"
}