2016-04-19 16:28:08 +02:00
|
|
|
TERMUX_PKG_HOMEPAGE=https://termux.com/
|
|
|
|
TERMUX_PKG_DESCRIPTION="Basic system tools for Termux"
|
2019-01-21 15:39:22 +01:00
|
|
|
TERMUX_PKG_LICENSE="GPL-3.0"
|
2019-07-01 22:43:43 +02:00
|
|
|
TERMUX_PKG_VERSION=0.68
|
2016-04-19 16:28:08 +02:00
|
|
|
TERMUX_PKG_PLATFORM_INDEPENDENT=yes
|
2018-02-06 22:33:46 +01:00
|
|
|
TERMUX_PKG_ESSENTIAL=yes
|
|
|
|
TERMUX_PKG_DEPENDS="termux-am"
|
2017-02-09 10:28:37 +01:00
|
|
|
TERMUX_PKG_CONFFILES="etc/motd"
|
2018-11-28 03:02:11 +01:00
|
|
|
TERMUX_PKG_CONFLICTS="procps (<< 3.3.15-2)"
|
2015-06-13 01:03:31 +02:00
|
|
|
|
2019-02-08 10:37:29 +01:00
|
|
|
termux_step_make_install() {
|
2018-02-03 17:13:18 +01:00
|
|
|
mkdir -p $TERMUX_PREFIX/bin/applets
|
2016-03-22 02:34:26 +01:00
|
|
|
# Remove LD_LIBRARY_PATH from environment to avoid conflicting
|
2017-01-08 10:53:36 +01:00
|
|
|
# with system libraries that system binaries may link against:
|
2019-07-01 22:43:43 +02:00
|
|
|
for tool in df getprop logcat mount ping ping6 ip pm settings top umount; do
|
2016-03-22 03:42:11 +01:00
|
|
|
WRAPPER_FILE=$TERMUX_PREFIX/bin/$tool
|
|
|
|
echo '#!/bin/sh' > $WRAPPER_FILE
|
2018-01-24 17:20:25 +01:00
|
|
|
echo 'unset LD_LIBRARY_PATH LD_PRELOAD' >> $WRAPPER_FILE
|
2016-04-11 02:20:17 +02:00
|
|
|
# Some tools require having /system/bin/app_process in the PATH,
|
|
|
|
# at least am&pm on a Nexus 6p running Android 6.0:
|
|
|
|
echo -n 'PATH=$PATH:/system/bin ' >> $WRAPPER_FILE
|
2016-04-19 16:28:08 +02:00
|
|
|
echo "exec /system/bin/$tool \"\$@\"" >> $WRAPPER_FILE
|
2018-02-03 17:13:18 +01:00
|
|
|
chmod +x $WRAPPER_FILE
|
2016-03-22 02:34:26 +01:00
|
|
|
done
|
|
|
|
|
2017-06-12 03:01:09 +02:00
|
|
|
cp -p $TERMUX_PKG_BUILDER_DIR/{dalvikvm,su,termux-fix-shebang,termux-reload-settings,termux-setup-storage,chsh,termux-open-url,termux-wake-lock,termux-wake-unlock,login,pkg,termux-open,termux-info} $TERMUX_PREFIX/bin/
|
2016-05-06 01:55:13 +02:00
|
|
|
perl -p -i -e "s%\@TERMUX_PREFIX\@%${TERMUX_PREFIX}%g" $TERMUX_PREFIX/bin/dalvikvm
|
2017-02-09 10:28:37 +01:00
|
|
|
|
|
|
|
cp $TERMUX_PKG_BUILDER_DIR/motd $TERMUX_PREFIX/etc/motd
|
2017-02-28 00:30:19 +01:00
|
|
|
cd $TERMUX_PREFIX/bin
|
2017-04-16 14:37:07 +02:00
|
|
|
ln -s -f termux-open xdg-open
|
2015-06-13 01:03:31 +02:00
|
|
|
}
|