36 lines
1.1 KiB
Bash
36 lines
1.1 KiB
Bash
TERMUX_PKG_HOMEPAGE=https://github.com/termux/proot-distro
|
|
TERMUX_PKG_DESCRIPTION="Termux official utility for managing proot'ed Linux distributions"
|
|
TERMUX_PKG_LICENSE="GPL-3.0"
|
|
TERMUX_PKG_MAINTAINER="@termux"
|
|
TERMUX_PKG_VERSION=3.0.2
|
|
TERMUX_PKG_SRCURL=https://github.com/termux/proot-distro/archive/v${TERMUX_PKG_VERSION}.tar.gz
|
|
TERMUX_PKG_SHA256=f6762b644b80231c7b5b09893f98385a144b0b950d3f3834719c178727f1429e
|
|
TERMUX_PKG_DEPENDS="bash, bzip2, coreutils, curl, findutils, gzip, ncurses-utils, proot (>= 5.1.107-32), sed, tar, xz-utils"
|
|
TERMUX_PKG_BUILD_IN_SRC=true
|
|
TERMUX_PKG_PLATFORM_INDEPENDENT=true
|
|
|
|
|
|
termux_step_make_install() {
|
|
env TERMUX_APP_PACKAGE="$TERMUX_APP_PACKAGE" \
|
|
TERMUX_PREFIX="$TERMUX_PREFIX" \
|
|
TERMUX_ANDROID_HOME="$TERMUX_ANDROID_HOME" \
|
|
./install.sh
|
|
}
|
|
|
|
termux_step_create_debscripts() {
|
|
cat <<- EOF > ./preinst
|
|
#!${TERMUX_PREFIX}/bin/bash
|
|
set -e
|
|
shopt -s nullglob
|
|
|
|
for i in ${TERMUX_PREFIX}/etc/proot-distro/*.sh; do
|
|
if ! grep -qP "^\s*TARBALL_URL" "\$i"; then
|
|
echo "Disabling old style v1.x proot-distro plug-in: \$(basename "\$i")"
|
|
mv -f "\${i}" "\${i}.bak"
|
|
fi
|
|
done
|
|
|
|
exit 0
|
|
EOF
|
|
}
|