From ca3971841bc641e24d7e0c5983afdffd48004ad8 Mon Sep 17 00:00:00 2001 From: Henrik Grimler Date: Thu, 7 Mar 2019 20:37:47 +0100 Subject: [PATCH] termux_create_subpackages: support TERMUX_SUBPKG_BREAKS --- scripts/build/termux_create_subpackages.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/scripts/build/termux_create_subpackages.sh b/scripts/build/termux_create_subpackages.sh index e08bd93dd..ff60bb1e7 100644 --- a/scripts/build/termux_create_subpackages.sh +++ b/scripts/build/termux_create_subpackages.sh @@ -20,6 +20,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_BREAKS="" local TERMUX_SUBPKG_DEPENDS="" local TERMUX_SUBPKG_CONFLICTS="" local TERMUX_SUBPKG_REPLACES="" @@ -60,6 +61,7 @@ termux_create_subpackages() { Version: $TERMUX_PKG_FULLVERSION Homepage: $TERMUX_PKG_HOMEPAGE HERE + test ! -z "$TERMUX_SUBPKG_BREAKS" && echo "Breaks: $TERMUX_SUBPKG_BREAKS" >> control test ! -z "$TERMUX_SUBPKG_DEPENDS" && echo "Depends: $TERMUX_SUBPKG_DEPENDS" >> control test ! -z "$TERMUX_SUBPKG_CONFLICTS" && echo "Conflicts: $TERMUX_SUBPKG_CONFLICTS" >> control test ! -z "$TERMUX_SUBPKG_REPLACES" && echo "Replaces: $TERMUX_SUBPKG_REPLACES" >> control