summaryrefslogtreecommitdiff
path: root/static/thesiah-debian.sh
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 /static/thesiah-debian.sh
parent00f2329c7f8759d56b59404138b58d4a18db75ce (diff)
Init
Diffstat (limited to 'static/thesiah-debian.sh')
-rwxr-xr-xstatic/thesiah-debian.sh37
1 files changed, 37 insertions, 0 deletions
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