| 1 | TERMUX_PKG_HOMEPAGE=http://termux.com |
| 2 | TERMUX_PKG_DESCRIPTION="Suggest installation of packages in interactive shell sessions" |
| 3 | TERMUX_PKG_VERSION=0.3 |
| 4 | |
| 5 | termux_step_make_install () { |
| 6 | TERMUX_SHARE_DIR=$TERMUX_PREFIX/share/termux |
| 7 | mkdir -p $TERMUX_SHARE_DIR |
| 8 | cp $TERMUX_PKG_BUILDER_DIR/commands.txt $TERMUX_SHARE_DIR/commands.txt |
| 9 | |
| 10 | TERMUX_LIBEXEC_DIR=$TERMUX_PREFIX/libexec/termux |
| 11 | mkdir -p $TERMUX_LIBEXEC_DIR |
| 12 | $CC $CFLAGS $LDFLAGS -std=c11 $TERMUX_PKG_BUILDER_DIR/command-not-found.c \ |
| 13 | -DTERMUX_COMMANDS_LISTING=$TERMUX_PREFIX/share/termux/commands.txt \ |
| 14 | -o $TERMUX_LIBEXEC_DIR/command-not-found |
| 15 | } |