aboutsummaryrefslogtreecommitdiff
path: root/ARCHIVED/library/setupPkgYay.sh
diff options
context:
space:
mode:
Diffstat (limited to 'ARCHIVED/library/setupPkgYay.sh')
-rwxr-xr-xARCHIVED/library/setupPkgYay.sh30
1 files changed, 30 insertions, 0 deletions
diff --git a/ARCHIVED/library/setupPkgYay.sh b/ARCHIVED/library/setupPkgYay.sh
new file mode 100755
index 0000000..0bcc293
--- /dev/null
+++ b/ARCHIVED/library/setupPkgYay.sh
@@ -0,0 +1,30 @@
+#!/bin/bash
+
+setupPkgYay () {
+ cd
+ git clone https://aur.archlinux.org/yay
+
+ cd $HOME/yay
+ makepkg -isr
+
+ cd
+ rm -rf $HOME/yay
+
+ if [ "$1" = "pc" ]; then
+ yay -S --needed - < "$dirArchIsoFiles"/pkglists/pkglist.txt
+ elif [ "$1" = "notebook" ]; then
+ yay -S --needed - < "$dirArchIsoFiles"/pkglists/pkglistnote.txt
+ fi
+}
+
+select platform in "pc" "notebook"; do
+
+ if [ "$platform" = "" ]; then
+ echo "Invalid option"
+ break
+ else
+ setupPkgYay "$platform"
+ fi
+
+ echo "✅ Готово"
+done