1
0
mirror of https://codeberg.org/kiss-community/kiss synced 2024-12-24 16:10:05 -07:00

Merge pull request #7 from kissx/makedepends2

depends: Add make depends.
This commit is contained in:
black 2019-06-15 12:27:34 +03:00 committed by GitHub
commit 14ba8e3941
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

13
kiss
View File

@ -41,14 +41,17 @@ pkg_setup() {
}
pkg_depends() {
while read -r dep; do
pkg_list "$dep" ||
while read -r dep opt; do
pkg_list "$dep" || {
[ "$1" = install ] && [ "$opt" = make ] && continue
case $missing in
*" $dep,"*) ;;
*) missing="$missing $dep,"
*" $dep${opt:+ ($opt)},"*) ;;
*) missing="$missing $dep${opt:+ ($opt)},"
pkg_setup "$dep"
pkg_depends ;;
esac
}
done 2>/dev/null < depends
}
@ -200,7 +203,7 @@ args() {
pkg_checksum
log "Generated checksums." ;;
i*) pkg_depends
i*) pkg_depends install
pkg_install ;;
l*) pkg_list "$2" ;;