Skip to content

Commit

Permalink
Update turnip_builder.sh
Browse files Browse the repository at this point in the history
- Introduce `mesasrc` variable
  • Loading branch information
ilhan-athn7 authored Jan 1, 2024
1 parent aaf9f61 commit dc3f3a6
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion turnip_builder.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,13 @@
green='\033[0;32m'
red='\033[0;31m'
nocolor='\033[0m'

deps="meson ninja patchelf unzip curl pip flex bison zip"
workdir="$(pwd)/turnip_workdir"
magiskdir="$workdir/turnip_module"
ndkver="android-ndk-r26b"
sdkver="31"
mesasrc="https://gitlab.freedesktop.org/mesa/mesa/-/archive/main/mesa-main.zip"
clear

# there are 4 functions here, simply comment to disable.
Expand Down Expand Up @@ -53,7 +55,7 @@ prepare_workdir(){
unzip "$ndkver"-linux.zip &> /dev/null

echo "Downloading mesa source (~30 MB) ..." $'\n'
curl https://gitlab.freedesktop.org/mesa/mesa/-/archive/main/mesa-main.zip --output mesa-main.zip &> /dev/null
curl "$mesasrc" --output mesa-main.zip &> /dev/null
###
echo "Exracting mesa source to a folder ..." $'\n'
unzip mesa-main.zip &> /dev/null
Expand Down

0 comments on commit dc3f3a6

Please sign in to comment.