Merge pull request #3585 from tomty89/devpackage
build-package: add TERMUX_PKG_DEVPACKAGE_{BREAKS,REPLACES} support
This commit is contained in:
commit
684f2f29ff
@ -10,6 +10,12 @@ termux_create_subpackages() {
|
||||
else
|
||||
echo "TERMUX_SUBPKG_DEPENDS=\"$TERMUX_PKG_NAME\"" >> "$_DEVEL_SUBPACKAGE_FILE"
|
||||
fi
|
||||
if [ -n "$TERMUX_PKG_DEVPACKAGE_BREAKS" ]; then
|
||||
echo "TERMUX_SUBPKG_BREAKS=\"$TERMUX_PKG_DEVPACKAGE_BREAKS\"" >> "$_DEVEL_SUBPACKAGE_FILE"
|
||||
fi
|
||||
if [ -n "$TERMUX_PKG_DEVPACKAGE_REPLACES" ]; then
|
||||
echo "TERMUX_SUBPKG_REPLACES=\"$TERMUX_PKG_DEVPACKAGE_REPLACES\"" >> "$_DEVEL_SUBPACKAGE_FILE"
|
||||
fi
|
||||
fi
|
||||
# Now build all sub packages
|
||||
rm -Rf "$TERMUX_TOPDIR/$TERMUX_PKG_NAME/subpackages"
|
||||
|
@ -104,6 +104,8 @@ termux_step_setup_variables() {
|
||||
TERMUX_PKG_CONFFILES=""
|
||||
TERMUX_PKG_INCLUDE_IN_DEVPACKAGE=""
|
||||
TERMUX_PKG_DEVPACKAGE_DEPENDS=""
|
||||
TERMUX_PKG_DEVPACKAGE_BREAKS=""
|
||||
TERMUX_PKG_DEVPACKAGE_REPLACES=""
|
||||
# Set if a host build should be done in TERMUX_PKG_HOSTBUILD_DIR:
|
||||
TERMUX_PKG_HOSTBUILD=""
|
||||
TERMUX_PKG_FORCE_CMAKE=no # if the package has autotools as well as cmake, then set this to prefer cmake
|
||||
|
Loading…
Reference in New Issue
Block a user