termux-packages/packages/command-not-found/build.sh
Leonid Pliushch 8701462951 add new linter script & fix packages where needed
Linter will check packages submitted for CI build. If error was found,
build will not be allowed.

To ensure that all build.sh scripts are consistent and have at least
minimal allowed quality, linter is permanently enabled for all branches
and pull requests.
2019-08-14 14:27:55 +03:00

13 lines
480 B
Bash

TERMUX_PKG_HOMEPAGE=https://termux.com
TERMUX_PKG_DESCRIPTION="Suggest installation of packages in interactive shell sessions"
TERMUX_PKG_LICENSE="Apache-2.0"
TERMUX_PKG_VERSION=1.39
TERMUX_PKG_SKIP_SRC_EXTRACT=true
termux_step_make_install() {
TERMUX_LIBEXEC_DIR=$TERMUX_PREFIX/libexec/termux
mkdir -p $TERMUX_LIBEXEC_DIR
$CC -Wall -Wextra -Werror -pedantic $CFLAGS $LDFLAGS -std=c11 $TERMUX_PKG_BUILDER_DIR/command-not-found.c \
-o $TERMUX_LIBEXEC_DIR/command-not-found
}