termux-packages/packages/tty-clock/build.sh
Oliver Schmidhauser 7f37b95295 Update tty-clock to version 2.3 (#680)
When the debian developers come ringing for a tagged release, suddenly
everything goes really fast.

In the build environment `ncurses5-config --libs` also returns
-ltinfo, which is unavailable to the linker. That's why the patch was
needed. Is this something that could be fixed in the build environment
or is this simply a badly written makefile, unsuitable for cross
compiling?
2017-01-17 16:10:09 +01:00

14 lines
542 B
Bash

TERMUX_PKG_DESCRIPTION="tty-clock is a simple ncurses-based clock that shows the time and date using a large display. It has a few commandline options to customize the output."
TERMUX_PKG_VERSION=2.3
TERMUX_PKG_MAINTAINER="Oliver Schmidhauser @Neo-Oli"
TERMUX_PKG_SRCURL=https://github.com/xorg62/tty-clock/archive/v${TERMUX_PKG_VERSION}.tar.gz
TERMUX_PKG_FOLDERNAME=tty-clock-${TERMUX_PKG_VERSION}
TERMUX_PKG_DEPENDS="ncurses"
TERMUX_PKG_BUILD_IN_SRC=yes
termux_step_post_configure() {
LDFLAGS+=" -lncurses"
CFLAGS+=" $CPPFLAGS"
}