aboutsummaryrefslogtreecommitdiff
path: root/ARCHIVED/library/setupPkg
diff options
context:
space:
mode:
authorLibravatar blueingreen68 <blueingreen68@gmail.com>2024-01-22 13:33:26 +0500
committerLibravatar blueingreen68 <blueingreen68@gmail.com>2024-01-22 13:33:26 +0500
commita4a700c8a424f2e2467517096182a3a3aaa9b43c (patch)
tree1034913d586d589c2f9fb6a837473254660f7007 /ARCHIVED/library/setupPkg
parent94aa4680567708b8c0c555a728552b1d8c7bd57a (diff)
unarchived
Diffstat (limited to 'ARCHIVED/library/setupPkg')
-rwxr-xr-xARCHIVED/library/setupPkg/setupPkgPipx.sh15
-rwxr-xr-xARCHIVED/library/setupPkg/setupPkgYay.sh30
2 files changed, 45 insertions, 0 deletions
diff --git a/ARCHIVED/library/setupPkg/setupPkgPipx.sh b/ARCHIVED/library/setupPkg/setupPkgPipx.sh
new file mode 100755
index 0000000..e9a38ee
--- /dev/null
+++ b/ARCHIVED/library/setupPkg/setupPkgPipx.sh
@@ -0,0 +1,15 @@
+#!/bin/bash
+
+setupPkgPipx () {
+ readarray -t pipxPkg < <(cat "$dirArchIsoFiles"/pkglists/pipxpkglist.txt)
+
+ for pkg in ${pipxPkg[@]}; do
+ pipx install "$pkg"
+ done
+
+ pipx ensurepath
+
+ echo "✅ Готово"
+}
+
+setupPkgPipx
diff --git a/ARCHIVED/library/setupPkg/setupPkgYay.sh b/ARCHIVED/library/setupPkg/setupPkgYay.sh
new file mode 100755
index 0000000..0bcc293
--- /dev/null
+++ b/ARCHIVED/library/setupPkg/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