fix to not use hardlinks which don't work...
[termux-packages] / packages / net-tools / build.sh
1 TERMUX_PKG_HOMEPAGE=http://net-tools.sourceforge.net/
2 TERMUX_PKG_DESCRIPTION="Configuration tools for Linux networking"
3 TERMUX_PKG_VERSION=1.60.2017.02.21
4 TERMUX_PKG_REVISION=1
5 local commit=479bb4a7e11a4084e2935c0a576388f92469225b
6 TERMUX_PKG_SHA256=7e9f8e8dcbabed0c8eeb976100496567abae7ac9d92c72cebd1a9d965473e943
7 # We use a mirror to avoid using
8 # https://sourceforge.net/code-snapshots/git/n/ne/net-tools/code.git/net-tools-code-$commit.zip
9 # which does not work all the time (sourceforge caching system):
10 TERMUX_PKG_SRCURL=https://dl.bintray.com/termux/upstream/net-tools-code-${commit}.zip
11 TERMUX_PKG_BUILD_IN_SRC=true
12 TERMUX_PKG_EXTRA_MAKE_ARGS="BINDIR=$TERMUX_PREFIX/bin SBINDIR=$TERMUX_PREFIX/bin HAVE_HOSTNAME_TOOLS=0"
13
14 termux_step_configure () {
15 CFLAGS="$CFLAGS -D_LINUX_IN6_H -Dindex=strchr -Drindex=strrchr"
16 LDFLAGS="$LDFLAGS -llog"
17 sed -i "s#/usr#$TERMUX_PREFIX#" $TERMUX_PKG_SRCDIR/man/Makefile
18 yes "" | make config || true
19 }
20
21 termux_step_make_install () {
22 make $TERMUX_PKG_EXTRA_MAKE_ARGS update
23 }