#!/bin/bash
if [ ! -d /var/cache/slint/lxqt/deps ]; then
	mkdir -p /var/cache/slint/lxqt/deps
fi
#
deps=(
#jq 
#libinput
#libdrm
#pixman
#libdisplay-info
#seatd
#wayland-protocols
#wlroots
#polkit-qt-1
polkit-qt6-1
extra-cmake-modules
layer-shell-qt6
plasma-wayland-protocols
kwindowsystem6
kwayland6
kconfig6
solid6
kidletime6
libkscreen6
breeze-icons 
kguiaddons6
)

for i in ${deps[@]}; do
	cd sources/deps/$i || exit 1
	sh $i.SlackBuild || exit 1
	upgradepkg --install-new --reinstall /var/cache/slint/lxqt/deps/${i}*slint.txz || exit 1
	cd ../../..
done
