2019-02-27 19:53:53 +01:00
|
|
|
termux_step_extract_into_massagedir() {
|
|
|
|
local TARBALL_ORIG=$TERMUX_PKG_PACKAGEDIR/${TERMUX_PKG_NAME}_orig.tar.gz
|
|
|
|
|
|
|
|
# Build diff tar with what has changed during the build:
|
|
|
|
cd $TERMUX_PREFIX
|
|
|
|
tar -N "$TERMUX_BUILD_TS_FILE" \
|
2020-02-06 19:52:50 +01:00
|
|
|
--exclude='lib/libutil.so' --exclude='tmp' \
|
2019-02-27 19:53:53 +01:00
|
|
|
-czf "$TARBALL_ORIG" .
|
|
|
|
|
|
|
|
# Extract tar in order to massage it
|
|
|
|
mkdir -p "$TERMUX_PKG_MASSAGEDIR/$TERMUX_PREFIX"
|
|
|
|
cd "$TERMUX_PKG_MASSAGEDIR/$TERMUX_PREFIX"
|
|
|
|
tar xf "$TARBALL_ORIG"
|
|
|
|
rm "$TARBALL_ORIG"
|
|
|
|
}
|