Switch to using meta packages for dep installation

This commit is contained in:
Makrennel 2024-06-01 18:10:42 +01:00
parent 08c1719c68
commit 70ff862f2a
13 changed files with 209 additions and 6 deletions

View file

@ -0,0 +1,14 @@
pkgname=illogical-impulse-audio
pkgver=1.0
pkgrel=1
pkgdesc='Illogical Impulse Audio Dependencies'
arch=(any)
license=(None)
depends=(
pavucontrol
wireplumber
libdbusmenu-gtk3
playerctl
swww
)

View file

@ -0,0 +1,11 @@
pkgname=illogical-impulse-backlight
pkgver=1.0
pkgrel=1
pkgdesc='Illogical Impulse Backlight Dependencies'
arch=(any)
license=(None)
depends=(
brightnessctl
ddcutil
)

View file

@ -0,0 +1,25 @@
pkgname=illogical-impulse-basic
pkgver=1.0
pkgrel=1
pkgdesc='Illogical Impulse Basic Dependencies'
arch=(any)
license=(None)
depends=(
axel
bc
coreutils
cliphist
cmake
curl
fuzzel
rsync
wget
ripgrep
gojq
npm
meson
typescript
gjs
xdg-user-dirs
)

View file

@ -0,0 +1,20 @@
pkgname=illogical-impulse-fonts-themes
pkgver=1.0
pkgrel=1
pkgdesc='Illogical Impulse Fonts and Theming Dependencies'
arch=(any)
license=(None)
depends=(
adw-gtk3-git
qt5ct
qt5-wayland
fontconfig
ttf-readex-pro
ttf-jetbrains-mono-nerd
ttf-material-symbols-variable-git
ttf-space-mono-nerd
fish
foot
starship
)

View file

@ -0,0 +1,15 @@
pkgname=illogical-impulse-gnome
pkgver=1.0
pkgrel=1
pkgdesc='Illogical Impulse GNOME Dependencies'
arch=(any)
license=(None)
depends=(
polkit-gnome
gnome-keyring
gnome-control-center
blueberry networkmanager
gammastep
gnome-bluetooth-3.0
)

View file

@ -0,0 +1,18 @@
pkgname=illogical-impulse-gtk
pkgver=1.0
pkgrel=1
pkgdesc='Illogical Impulse GTK Dependencies'
arch=(any)
license=(None)
depends=(
webp-pixbuf-loader
gtk-layer-shell
gtk3
gtksourceview3
gobject-introspection
upower
yad
ydotool
xdg-user-dirs-gtk
)

View file

@ -0,0 +1,13 @@
pkgname=illogical-impulse-microtex
pkgver=1.0
pkgrel=1
pkgdesc='Illogical Impulse MicroTeX Dependencies'
arch=(any)
license=(None)
depends=(
tinyxml2
gtkmm3
gtksourceviewmm
cairomm
)

View file

@ -0,0 +1,12 @@
pkgname=illogical-impulse-portal
pkgver=1.0
pkgrel=1
pkgdesc='Illogical Impulse XDG Desktop Portals'
arch=(any)
license=(None)
depends=(
xdg-desktop-portal
xdg-desktop-portal-gtk
xdg-desktop-portal-hyprland-git
)

View file

@ -0,0 +1,13 @@
pkgname=illogical-impulse-pymyc-aur
pkgver=1.0
pkgrel=1
pkgdesc='Illogical Impulse PyMYC Dependencies'
arch=(any)
license=(None)
depends=(
python-materialyoucolor-git
gradience-git
python-libsass
python-material-color-utilities
)

View file

@ -0,0 +1,15 @@
pkgname=illogical-impulse-python
pkgver=1.0
pkgrel=1
pkgdesc='Illogical Impulse Python Dependencies'
arch=(any)
license=(None)
# Add `python-setuptools-scm` and `python-wheel` explicitly to fix #197
depends=(
python-build
python-pillow
python-pywal
python-setuptools-scm
python-wheel
)

View file

@ -0,0 +1,15 @@
pkgname=illogical-impulse-screencapture
pkgver=1.0
pkgrel=1
pkgdesc='Illogical Impulse Screenshot and Recording Dependencies'
arch=(any)
license=(None)
depends=(
swappy
wf-recorder
grim
tesseract
tesseract-data-eng
slurp
)

View file

@ -0,0 +1,18 @@
pkgname=illogical-impulse-widgets
pkgver=1.0
pkgrel=1
pkgdesc='Illogical Impulse Widget Dependencies'
arch=(any)
license=(None)
depends=(
dart-sass
python-pywayland
python-psutil
hypridle-git
hyprlock-git
wlogout
wl-clipboard
hyprpicker-git
anyrun-git
)

View file

@ -81,12 +81,21 @@ if ! command -v yay >/dev/null 2>&1;then
else AUR_HELPER=yay
fi
#if $ask;then
# # execute per element of the array $pkglist
# for i in "${pkglist[@]}";do v $AUR_HELPER -S --needed $i;done
#else
# # execute for all elements of the array $pkglist in one line
# v $AUR_HELPER -S --needed --noconfirm ${pkglist[*]}
#fi
metapkgs=(arch-packages/illogical-impulse-{audio,backlight,basic,fonts-themes,gnome,gtk,microtex,portal,python,screencapture,widgets})
if $ask;then
# execute per element of the array $pkglist
for i in "${pkglist[@]}";do v $AUR_HELPER -S --needed $i;done
# execute for every meta package
for i in "${metapkgs[@]}";do v $AUR_HELPER -Bi --needed --answerclean=n $i;done
else
# execute for all elements of the array $pkglist in one line
v $AUR_HELPER -S --needed --noconfirm ${pkglist[*]}
# execute for all meta packages at once
v $AUR_HELPER -Bi --needed --answerclean=n --noconfirm ${metapkgs[@]}
fi
@ -110,9 +119,14 @@ case $SKIP_PYMYC_AUR in
true) sleep 0;;
*)
if $ask;then
v $AUR_HELPER -S --answerclean=a ${pymyc[@]}
# Yay is bugged and destroys the PKGBUILD if you specify to cleanBuild with the -Bi flag, so we install the deps manually
v \
$AUR_HELPER -S --answerclean=a --asdeps ${pymyc[@]} && \
pushd arch-packages/illogical-impulse-pymyc-aur & makepkg -si & popd
else
v $AUR_HELPER -S --answerclean=a --noconfirm ${pymyc[@]}
v \
$AUR_HELPER -S --answerclean=a --asdeps --noconfirm ${pymyc[@]} && \
pushd arch-packages/illogical-impulse-pymyc-aur & makepkg -si --noconfirm & popd
fi
;;
esac