Skip to content

Commit cf19c79

Browse files
committed
[fix] : Fixed PKGBUILD path
1 parent 02ad0cb commit cf19c79

1 file changed

Lines changed: 5 additions & 3 deletions

File tree

system/pkgbuild.sh

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -77,9 +77,11 @@ 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[@]}"
80+
depends=($(source "${pkgbuild_dir}/${_dir}/PKGBUILD"; echo "${depends[@]}"))
81+
makedepends=($(source "${pkgbuild_dir}/${_dir}/PKGBUILD"; echo "${makedepends[@]}"))
82+
if (( ${#depends[@]} + ${#makedepends[@]} != 0 )); then
83+
pacman -S --noconfirm --asdeps --needed "${depends[@]}" "${makedepends[@]}"
84+
fi
8385
run_user makepkg -iAcCs --noconfirm
8486
cd - >/dev/null
8587
done

0 commit comments

Comments
 (0)