-
-
Notifications
You must be signed in to change notification settings - Fork 3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Test implementation of virtual packages
Virtual packages are packages that are compiled and installed into the system, but are not assembled into a source package for package managers. One advantage of virtual packages is that they can use sources (including values from configured variables) from regular packages. This will allow us to easily create special virtual packages that will have to resolve cyclic dependencies in regular packages. PS: not ready for review yet, please wait
- Loading branch information
Showing
7 changed files
with
221 additions
and
136 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,16 @@ | ||
termux_step_finish_build() { | ||
echo "termux - build of '$TERMUX_PKG_NAME' done" | ||
echo "termux - build of $(test "${TERMUX_VIRTUAL_PKG}" = "true" && echo "virtual") '$TERMUX_PKG_NAME' done" | ||
test -t 1 && printf "\033]0;%s - DONE\007" "$TERMUX_PKG_NAME" | ||
|
||
mkdir -p "$TERMUX_BUILT_PACKAGES_DIRECTORY" | ||
echo "$TERMUX_PKG_FULLVERSION" > "$TERMUX_BUILT_PACKAGES_DIRECTORY/$TERMUX_PKG_NAME" | ||
if [ "$TERMUX_VIRTUAL_PKG" = "false" ]; then | ||
mkdir -p "$TERMUX_BUILT_PACKAGES_DIRECTORY" | ||
echo "$TERMUX_PKG_FULLVERSION" > "$TERMUX_BUILT_PACKAGES_DIRECTORY/$TERMUX_PKG_NAME" | ||
|
||
for subpackage in "$TERMUX_PKG_BUILDER_DIR"/*.subpackage.sh; do | ||
local subpkg_name="$(basename $subpackage | sed 's@\.subpackage\.sh@@g')" | ||
echo "$TERMUX_PKG_FULLVERSION" > "$TERMUX_BUILT_PACKAGES_DIRECTORY/${subpkg_name}" | ||
done | ||
fi | ||
|
||
for subpackage in "$TERMUX_PKG_BUILDER_DIR"/*.subpackage.sh; do | ||
local subpkg_name="$(basename $subpackage | sed 's@\.subpackage\.sh@@g')" | ||
echo "$TERMUX_PKG_FULLVERSION" > "$TERMUX_BUILT_PACKAGES_DIRECTORY/${subpkg_name}" | ||
done | ||
exit 0 | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.