Commit | Line | Data |
---|---|---|
9d57b270 FF |
1 | TERMUX_PKG_HOMEPAGE=http://www.openbsd.org/cgi-bin/man.cgi/OpenBSD-current/man1/nc.1 |
2 | TERMUX_PKG_DESCRIPTION="Utility for reading from and writing to connections using TCP or UDP" | |
3 | TERMUX_PKG_VERSION=1.103 | |
4 | _COMMIT=b023a43765b15f0b0fd5b52b7d8021f515c59c23 | |
5 | TERMUX_PKG_SRCURL=https://github.com/android/platform_external_netcat/archive/${_COMMIT}.zip | |
6 | TERMUX_PKG_FOLDERNAME=platform_external_netcat-$_COMMIT | |
7 | ||
8 | termux_step_make () { | |
9 | return | |
10 | } | |
11 | ||
12 | termux_step_make_install () { | |
13 | cd $TERMUX_PKG_SRCDIR | |
14 | CFLAGS+=" -DANDROID=1" | |
15 | $CC $CFLAGS $LDFLAGS *.c -o $TERMUX_PREFIX/bin/nc | |
16 | ||
17 | cp $TERMUX_PKG_BUILDER_DIR/nc.1 $TERMUX_PREFIX/share/man/man1/ | |
18 | } |