1
0
mirror of https://github.com/termux/termux-packages synced 2024-06-20 15:47:09 +00:00
termux-packages/packages/libutil/build.sh

12 lines
461 B
Bash
Raw Normal View History

2015-09-12 21:36:00 +00:00
TERMUX_PKG_HOMEPAGE=https://refspecs.linuxbase.org/LSB_2.1.0/LSB-generic/LSB-generic/libutil.html
TERMUX_PKG_DESCRIPTION="Library with terminal functions"
TERMUX_PKG_LICENSE="NCSA" # same as ndk-sysroot
TERMUX_PKG_VERSION=0.4
2015-09-12 21:36:00 +00:00
TERMUX_PKG_BUILD_IN_SRC=yes
termux_step_make_install() {
CPPFLAGS+=" -std=c11 -Wall -Werror"
$CC $CPPFLAGS $CFLAGS -c -fPIC $TERMUX_PKG_BUILDER_DIR/pty.c -o pty.o
2015-09-12 21:36:00 +00:00
$CC -shared -fPIC $LDFLAGS -o $TERMUX_PREFIX/lib/libutil.so pty.o
}