b3b5a3f35f
By moving the checks we can make the function more general, and thereby re-use it for creating subpackages and potentially hostbuild tools packages. tests: building libandroid-support and build-essential.
9 lines
199 B
Bash
9 lines
199 B
Bash
termux_step_create_datatar() {
|
|
if [ "$TERMUX_PKG_METAPACKAGE" = "true" ]; then
|
|
# Metapackage doesn't have data inside.
|
|
rm -rf data
|
|
fi
|
|
|
|
tar -cJf "$TERMUX_PKG_PACKAGEDIR/data.tar.xz" -H gnu .
|
|
}
|