added build-dep

This commit is contained in:
JaKooLit 2025-02-05 09:53:30 +09:00
parent eef6cdd5a5
commit 214fe3997f
4 changed files with 35 additions and 4 deletions

View File

@ -248,6 +248,9 @@ source ~/.zshrc
#### 🛣️ Roadmap: #### 🛣️ Roadmap:
- [ ] possibly adding gruvbox themes, cursors, icons - [ ] possibly adding gruvbox themes, cursors, icons
### ⁉️ KNOWN ISSUE
- [ ] hypridle wont build (Feb 2025)
#### ❗ some known issues for nvidia #### ❗ some known issues for nvidia
- reports from members of my discord, states that some users of nvidia are getting stuck on sddm login. credit to @Kenni Fix stated was - reports from members of my discord, states that some users of nvidia are getting stuck on sddm login. credit to @Kenni Fix stated was
``` ```
@ -271,8 +274,6 @@ env = WLR_RENDERER_ALLOW_SOFTWARE,1
``` ```
#### ❗ other known issues #### ❗ other known issues
- [ ] hypridle wont build
- [ ] ags (aylurs gtk shell) wont build
> [!NOTE] > [!NOTE]
> Auto start of Hyprland after login (no SDDM or GDM or any login managers) > Auto start of Hyprland after login (no SDDM or GDM or any login managers)

View File

@ -59,6 +59,10 @@ dependencies=(
xwayland xwayland
) )
build_dep=(
wlroots
)
## WARNING: DO NOT EDIT BEYOND THIS LINE IF YOU DON'T KNOW WHAT YOU ARE DOING! ## ## WARNING: DO NOT EDIT BEYOND THIS LINE IF YOU DON'T KNOW WHAT YOU ARE DOING! ##
# Determine the directory where the script is located # Determine the directory where the script is located
SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
@ -75,8 +79,14 @@ LOG="Install-Logs/install-$(date +%d-%H%M%S)_dependencies.log"
# Installation of main dependencies # Installation of main dependencies
printf "\n%s - Installing ${SKY_BLUE}main dependencies....${RESET} \n" "${NOTE}" printf "\n%s - Installing ${SKY_BLUE}main dependencies....${RESET} \n" "${NOTE}"
for PKG1 in "${dependencies[@]}"; do for PKG in "${dependencies[@]}"; do
install_package "$PKG1" "$LOG" install_package "$PKG" "$LOG"
done
printf "\n%.0s" {1..1}
for PKG1 in "${build_dep[@]}"; do
build_dep "$PKG1" "$LOG"
done done
printf "\n%.0s" {1..2} printf "\n%.0s" {1..2}

View File

@ -68,6 +68,16 @@ install_package() {
fi fi
} }
# Function for build depencies with a progress bar
build_dep() {
echo -e "${INFO} building depencies for ${MAGENTA}$1${RESET} "
(
stdbuf -oL sudo build-dep -y "$1" 2>&1
) >> "$LOG" 2>&1 &
PID=$!
show_progress $PID "$1"
}
# Function for re-installing packages with a progress bar # Function for re-installing packages with a progress bar
re_install_package() { re_install_package() {
( (

View File

@ -29,6 +29,10 @@ f_ags=(
npm npm
) )
build_dep=(
pam
)
# specific tags to download # specific tags to download
ags_tag="v1.9.0" ags_tag="v1.9.0"
@ -58,6 +62,12 @@ for force_ags in "${f_ags[@]}"; do
re_install_package "$force_ags" 2>&1 | tee -a "$LOG" re_install_package "$force_ags" 2>&1 | tee -a "$LOG"
done done
printf "\n%.0s" {1..1}
for PKG1 in "${build_dep[@]}"; do
build_dep "$PKG1" "$LOG"
done
#install typescript by npm #install typescript by npm
sudo npm install --global typescript 2>&1 | tee -a "$LOG" sudo npm install --global typescript 2>&1 | tee -a "$LOG"