Browse Source
Merge pull request #3585 from tomty89/devpackage
build-package: add TERMUX_PKG_DEVPACKAGE_{BREAKS,REPLACES} support
emacs-27
Henrik Grimler
6 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with
8 additions and
0 deletions
-
scripts/build/termux_create_subpackages.sh
-
scripts/build/termux_step_setup_variables.sh
|
|
@ -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 |
|
|
|