build-package.sh: allow to mark subpackages as essential
This commit is contained in:
parent
bf1c224eb4
commit
4f811f734e
@ -24,6 +24,7 @@ termux_create_subpackages() {
|
||||
# Default value is same as main package, but sub package may override:
|
||||
local TERMUX_SUBPKG_PLATFORM_INDEPENDENT=$TERMUX_PKG_PLATFORM_INDEPENDENT
|
||||
local SUB_PKG_DIR=$TERMUX_TOPDIR/$TERMUX_PKG_NAME/subpackages/$SUB_PKG_NAME
|
||||
local TERMUX_SUBPKG_ESSENTIAL=""
|
||||
local TERMUX_SUBPKG_BREAKS=""
|
||||
local TERMUX_SUBPKG_DEPENDS=""
|
||||
local TERMUX_SUBPKG_CONFLICTS=""
|
||||
@ -78,6 +79,7 @@ termux_create_subpackages() {
|
||||
TERMUX_SUBPKG_DEPENDS+=", $TERMUX_PKG_DEPENDS"
|
||||
fi
|
||||
|
||||
test ! -z "$TERMUX_SUBPKG_ESSENTIAL" && echo "Essential: yes" >> control
|
||||
test ! -z "$TERMUX_SUBPKG_DEPENDS" && echo "Depends: ${TERMUX_SUBPKG_DEPENDS/#, /}" >> control
|
||||
test ! -z "$TERMUX_SUBPKG_BREAKS" && echo "Breaks: $TERMUX_SUBPKG_BREAKS" >> control
|
||||
test ! -z "$TERMUX_SUBPKG_CONFLICTS" && echo "Conflicts: $TERMUX_SUBPKG_CONFLICTS" >> control
|
||||
|
Loading…
Reference in New Issue
Block a user