Skip to content

Commit 02ad0cb

Browse files
committed
[update] : Install depends with pacman
1 parent c0f08dc commit 02ad0cb

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

system/pkgbuild.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,9 @@ pkgbuild_dirs=($(ls "${pkgbuild_dir}" 2> /dev/null))
7777
if (( "${#pkgbuild_dirs[@]}" != 0 )); then
7878
for _dir in ${pkgbuild_dirs[@]}; do
7979
cd "${_dir}"
80+
depends=($(source "${_dir}/PKGBUILD"; echo "${depends[@]}"))
81+
makedepends=($(source "${_dir}/PKGBUILD"; echo "${makedepends[@]}"))
82+
pacman -S --noconfirm --asdeps --needed "${depends[@]}" "${makedepends[@]}"
8083
run_user makepkg -iAcCs --noconfirm
8184
cd - >/dev/null
8285
done

0 commit comments

Comments
 (0)