OSDN Git Service
(root)
/
alterlinux
/
alterlinux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c0f08dc
)
[update] : Install depends with pacman
author
hayao
<hayao@fascode.net>
Mon, 22 Mar 2021 07:51:23 +0000
(16:51 +0900)
committer
hayao
<hayao@fascode.net>
Mon, 22 Mar 2021 07:51:23 +0000
(16:51 +0900)
system/pkgbuild.sh
patch
|
blob
|
history
diff --git
a/system/pkgbuild.sh
b/system/pkgbuild.sh
index
1ffc5cf
..
91d37df
100755
(executable)
--- a/
system/pkgbuild.sh
+++ b/
system/pkgbuild.sh
@@
-77,6
+77,9
@@
pkgbuild_dirs=($(ls "${pkgbuild_dir}" 2> /dev/null))
if (( "${#pkgbuild_dirs[@]}" != 0 )); then
for _dir in ${pkgbuild_dirs[@]}; do
cd "${_dir}"
+ depends=($(source "${_dir}/PKGBUILD"; echo "${depends[@]}"))
+ makedepends=($(source "${_dir}/PKGBUILD"; echo "${makedepends[@]}"))
+ pacman -S --noconfirm --asdeps --needed "${depends[@]}" "${makedepends[@]}"
run_user makepkg -iAcCs --noconfirm
cd - >/dev/null
done