aboutsummaryrefslogtreecommitdiff
path: root/library/setupPkgYay.sh
diff options
context:
space:
mode:
authorLibravatar blueingreen68 <blueingreen68@gmail.com>2023-12-28 18:40:51 +0500
committerLibravatar blueingreen68 <blueingreen68@gmail.com>2023-12-28 18:40:51 +0500
commit13eb5f3cfb004e5910c8e007bf1e23333c846e4e (patch)
tree48c50decc561cd3c675338eba0817ca3402c84ff /library/setupPkgYay.sh
parent05b8c6f68cb99ef215fd7b4cf362fe9f7be09e38 (diff)
update files
Diffstat (limited to 'library/setupPkgYay.sh')
-rwxr-xr-xlibrary/setupPkgYay.sh29
1 files changed, 29 insertions, 0 deletions
diff --git a/library/setupPkgYay.sh b/library/setupPkgYay.sh
new file mode 100755
index 0000000..2c3e547
--- /dev/null
+++ b/library/setupPkgYay.sh
@@ -0,0 +1,29 @@
+#!/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
+
+done