2016-07-07 18:56:22 +02:00
|
|
|
TERMUX_PKG_HOMEPAGE=https://github.com/cswl/tsu
|
|
|
|
TERMUX_PKG_DESCRIPTION="A su wrapper for Termux"
|
2019-01-21 15:00:12 +01:00
|
|
|
TERMUX_PKG_LICENSE="ISC"
|
2019-04-26 13:22:11 +02:00
|
|
|
TERMUX_PKG_VERSION=2.3
|
2016-07-07 18:56:22 +02:00
|
|
|
TERMUX_PKG_PLATFORM_INDEPENDENT=yes
|
2019-04-23 18:09:49 +02:00
|
|
|
TERMUX_PKG_SKIP_SRC_EXTRACT=1
|
2018-06-22 01:03:26 +02:00
|
|
|
TERMUX_PKG_BUILD_IN_SRC=yes
|
|
|
|
|
2019-04-23 18:09:49 +02:00
|
|
|
termux_step_extract_package() {
|
|
|
|
local CHECKED_OUT_FOLDER=$TERMUX_PKG_CACHEDIR/tsu-checkout-$TERMUX_PKG_VERSION
|
|
|
|
if [ ! -d $CHECKED_OUT_FOLDER ]; then
|
|
|
|
local TMP_CHECKOUT=$TERMUX_PKG_TMPDIR/tmp-checkout
|
|
|
|
rm -Rf $TMP_CHECKOUT
|
|
|
|
mkdir -p $TMP_CHECKOUT
|
|
|
|
|
|
|
|
git clone --depth 1 \
|
|
|
|
--branch master \
|
|
|
|
https://github.com/cswl/tsu.git \
|
|
|
|
$TMP_CHECKOUT
|
|
|
|
cd $TMP_CHECKOUT
|
|
|
|
git fetch --all --tags --prune
|
|
|
|
git checkout "tags/v$TERMUX_PKG_VERSION" -b "$TERMUX_PKG_VERSION"
|
|
|
|
mv $TMP_CHECKOUT $CHECKED_OUT_FOLDER
|
|
|
|
fi
|
|
|
|
|
|
|
|
mkdir $TERMUX_PKG_SRCDIR
|
|
|
|
cd $TERMUX_PKG_SRCDIR
|
|
|
|
cp -Rf $CHECKED_OUT_FOLDER/* .
|
|
|
|
}
|
|
|
|
|
2018-06-22 01:03:26 +02:00
|
|
|
termux_step_make() {
|
|
|
|
:
|
|
|
|
}
|
2016-07-07 18:56:22 +02:00
|
|
|
|
2019-02-08 10:37:29 +01:00
|
|
|
termux_step_make_install() {
|
2018-06-22 01:03:26 +02:00
|
|
|
cp tsu $TERMUX_PREFIX/bin/tsu
|
2016-07-07 18:56:22 +02:00
|
|
|
chmod +x $TERMUX_PREFIX/bin/tsu
|
2018-06-22 01:03:26 +02:00
|
|
|
|
|
|
|
cp tsudo $TERMUX_PREFIX/bin/tsudo
|
2018-03-12 11:16:36 +01:00
|
|
|
chmod +x $TERMUX_PREFIX/bin/tsudo
|
2016-07-07 18:56:22 +02:00
|
|
|
}
|