2020-07-20 22:51:31 +02:00
|
|
|
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"
|
2020-07-25 19:16:34 +02:00
|
|
|
TERMUX_PKG_MAINTAINER="Leonid Pliushch <leonid.pliushch@gmail.com>"
|
2021-10-26 09:34:15 +02:00
|
|
|
TERMUX_PKG_VERSION=2.8.0
|
2020-07-21 03:28:17 +02:00
|
|
|
TERMUX_PKG_SRCURL=https://github.com/termux/proot-distro/archive/v${TERMUX_PKG_VERSION}.tar.gz
|
2021-10-26 09:34:15 +02:00
|
|
|
TERMUX_PKG_SHA256=d5cb3d003b1b92e92c8c658afb2bc61a50229f5cb9ac33cd8056569659416d39
|
2020-11-08 21:21:21 +01:00
|
|
|
TERMUX_PKG_DEPENDS="bash, bzip2, coreutils, curl, findutils, gzip, ncurses-utils, proot (>= 5.1.107-32), sed, tar, xz-utils"
|
2020-07-20 22:51:31 +02:00
|
|
|
TERMUX_PKG_BUILD_IN_SRC=true
|
|
|
|
TERMUX_PKG_PLATFORM_INDEPENDENT=true
|
|
|
|
|
2021-10-04 18:55:56 +02:00
|
|
|
|
2020-07-20 22:51:31 +02:00
|
|
|
termux_step_make_install() {
|
2021-10-13 14:57:56 +02:00
|
|
|
env TERMUX_APP_PACKAGE="$TERMUX_APP_PACKAGE" \
|
|
|
|
TERMUX_PREFIX="$TERMUX_PREFIX" \
|
|
|
|
TERMUX_ANDROID_HOME="$TERMUX_ANDROID_HOME" \
|
|
|
|
./install.sh
|
2020-07-20 22:51:31 +02:00
|
|
|
}
|
2021-08-15 00:54:25 +02:00
|
|
|
|
|
|
|
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
|
|
|
|
}
|