summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTheSiahxyz <164138827+TheSiahxyz@users.noreply.github.com>2024-07-10 18:19:12 +0900
committerTheSiahxyz <164138827+TheSiahxyz@users.noreply.github.com>2024-07-10 18:19:12 +0900
commit93a35c99e9e200525b5aee8a88081551fa0cd189 (patch)
tree1b428c7234161107e1fb371447e0fad80199836e
parent00f2329c7f8759d56b59404138b58d4a18db75ce (diff)
Init
-rwxr-xr-xpublic/thesiah-debian.sh42
-rwxr-xr-xstatic/thesiah-debian.sh37
2 files changed, 77 insertions, 2 deletions
diff --git a/public/thesiah-debian.sh b/public/thesiah-debian.sh
index 53f5f71..e876d5c 100755
--- a/public/thesiah-debian.sh
+++ b/public/thesiah-debian.sh
@@ -133,20 +133,21 @@ vimplugininstall() {
}
lfinstall() {
- env CGO_ENABLED=0 go install -ldflags="-s -w" github.com/gokcehan/lf@latest
+ env CGO_ENABLED=0 go install -ldflags="-s -w" github.com/gokcehan/lf@latest || return
}
zoxideinstall() {
git clone https://github.com/ajeetdsouza/zoxide.git
cd zoxide
./install.sh
- cd /tmp
+ cd /tmp || return
}
nviminstall() {
latest_version=$(curl -s https://api.github.com/repos/neovim/neovim/releases/latest | grep -o '"tag_name": ".*"' | cut -d'"' -f4)
download_url="https://github.com/neovim/neovim/releases/download/$latest_version/nvim.appimage"
curl -LO "$download_url"
+ mv nvim.appimage /usr/bin/nvim || return
}
addsudo() {
@@ -195,6 +196,41 @@ checksystem() {
fi
}
+gnupginstall() {
+ gpgerror="http://mirrors.dotsrc.org/gcrypt/libgpg-error/libgpg-error-1.50.tar.gz"
+ npth="http://mirrors.dotsrc.org/gcrypt/npth/npth-1.7.tar.bz2"
+ assuan="http://mirrors.dotsrc.org/gcrypt/libassuan/libassuan-3.0.1.tar.bz2"
+ ksba="http://mirrors.dotsrc.org/gcrypt/libksba/libksba-1.6.7.tar.bz2"
+ gcrypt="http://mirrors.dotsrc.org/gcrypt/libgcrypt/libgcrypt-1.11.0.tar.gz"
+ gpglibs=("$gpgerror" "$npth" "$assuan" "$ksba" "$gcrypt")
+
+ for lib in "${gpglibs[@]}"; do
+ curl -LO "$lib"
+
+ filename=$(basename "$lib")
+
+ case "$filename" in
+ *.tar.bz2) tar -xjf "$filename" ;;
+ *.tar.gz) tar -xzf "$filename" ;;
+ *) exit 1 ;;
+ esac
+
+ dirname="${filename%.tar.*}"
+ cd "$dirname"
+ mkdir -p build
+ cd build
+ ../configure
+ [ $? -ne 0 ] && exit 1
+ make
+ [ $? -ne 0 ] && exit 1
+ make install
+ [ $? -ne 0 ] && exit 1
+ cd ../..
+ rm -rf "$dirname"
+ rm "$filename"
+ done
+}
+
finalize() {
whiptail --title "All done!" \
--msgbox "Congrats! Provided there were no hidden errors, the script completed successfully and all the programs and configuration files should be in place.\\n\\nTo run the new graphical environment, log out and log back in as your new user, then run the command \"startx\" to start the graphical environment (it will start automatically in tty1).\\n\\n.t Soomin" 13 80
@@ -274,4 +310,6 @@ for system in $systems; do
checksystem $system || error "Failed to start $system"
done
+gnupginstall || error "User exited."
+
finalize
diff --git a/static/thesiah-debian.sh b/static/thesiah-debian.sh
index 4f560d9..e876d5c 100755
--- a/static/thesiah-debian.sh
+++ b/static/thesiah-debian.sh
@@ -196,6 +196,41 @@ checksystem() {
fi
}
+gnupginstall() {
+ gpgerror="http://mirrors.dotsrc.org/gcrypt/libgpg-error/libgpg-error-1.50.tar.gz"
+ npth="http://mirrors.dotsrc.org/gcrypt/npth/npth-1.7.tar.bz2"
+ assuan="http://mirrors.dotsrc.org/gcrypt/libassuan/libassuan-3.0.1.tar.bz2"
+ ksba="http://mirrors.dotsrc.org/gcrypt/libksba/libksba-1.6.7.tar.bz2"
+ gcrypt="http://mirrors.dotsrc.org/gcrypt/libgcrypt/libgcrypt-1.11.0.tar.gz"
+ gpglibs=("$gpgerror" "$npth" "$assuan" "$ksba" "$gcrypt")
+
+ for lib in "${gpglibs[@]}"; do
+ curl -LO "$lib"
+
+ filename=$(basename "$lib")
+
+ case "$filename" in
+ *.tar.bz2) tar -xjf "$filename" ;;
+ *.tar.gz) tar -xzf "$filename" ;;
+ *) exit 1 ;;
+ esac
+
+ dirname="${filename%.tar.*}"
+ cd "$dirname"
+ mkdir -p build
+ cd build
+ ../configure
+ [ $? -ne 0 ] && exit 1
+ make
+ [ $? -ne 0 ] && exit 1
+ make install
+ [ $? -ne 0 ] && exit 1
+ cd ../..
+ rm -rf "$dirname"
+ rm "$filename"
+ done
+}
+
finalize() {
whiptail --title "All done!" \
--msgbox "Congrats! Provided there were no hidden errors, the script completed successfully and all the programs and configuration files should be in place.\\n\\nTo run the new graphical environment, log out and log back in as your new user, then run the command \"startx\" to start the graphical environment (it will start automatically in tty1).\\n\\n.t Soomin" 13 80
@@ -275,4 +310,6 @@ for system in $systems; do
checksystem $system || error "Failed to start $system"
done
+gnupginstall || error "User exited."
+
finalize