updated cursor.sh

This commit is contained in:
JaKooLit 2024-05-01 11:15:42 +09:00
parent ff46cbeb8e
commit cdc6e19818

View File

@ -7,6 +7,9 @@ libzip-dev
librsvg2-dev
)
#specific branch or release
cursor_tag="v0.1.8"
## WARNING: DO NOT EDIT BEYOND THIS LINE IF YOU DON'T KNOW WHAT YOU ARE DOING! ##
# Determine the directory where the script is located
SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
@ -40,7 +43,7 @@ fi
# Clone and build
printf "${NOTE} Installing hyprcursor...\n"
if git clone --recursive -b v0.1.8 https://github.com/hyprwm/hyprcursor.git; then
if git clone --recursive -b $cursor_tag https://github.com/hyprwm/hyprcursor.git; then
cd hyprcursor || exit 1
cmake --no-warn-unused-cli -DCMAKE_BUILD_TYPE:STRING=Release -DCMAKE_INSTALL_PREFIX:PATH=/usr -S . -B ./build
cmake --build ./build --config Release --target all -j`nproc 2>/dev/null || getconf NPROCESSORS_CONF`