aboutsummaryrefslogtreecommitdiff
path: root/library
diff options
context:
space:
mode:
authorLibravatar blueingreen68 <blueingreen68@gmail.com>2024-01-12 18:34:25 +0500
committerLibravatar blueingreen68 <blueingreen68@gmail.com>2024-01-15 06:30:30 +0000
commit6b3e2bbd678b27d40c603e709a80b1760ffca139 (patch)
treef94a3e7c627a45a83635a6fedb74bafa163be7f0 /library
parentd7ae6c112c7e330fbcf03f6ad581f992a932b8ba (diff)
update pkglist.txt
Diffstat (limited to 'library')
-rwxr-xr-xlibrary/setupPkg/setupPkgPipx.sh15
-rwxr-xr-xlibrary/setupPkg/setupPkgYay.sh30
2 files changed, 45 insertions, 0 deletions
diff --git a/library/setupPkg/setupPkgPipx.sh b/library/setupPkg/setupPkgPipx.sh
new file mode 100755
index 0000000..e9a38ee
--- /dev/null
+++ b/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/library/setupPkg/setupPkgYay.sh b/library/setupPkg/setupPkgYay.sh
new file mode 100755
index 0000000..0bcc293
--- /dev/null
+++ b/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