29 lines
885 B
Bash
29 lines
885 B
Bash
|
TERMUX_PKG_HOMEPAGE=https://www.si6networks.com/research/tools/ipv6toolkit/
|
||
|
TERMUX_PKG_DESCRIPTION="SI6 Networks IPv6 Toolkit"
|
||
|
TERMUX_PKG_LICENSE="GPL-3.0"
|
||
|
TERMUX_PKG_MAINTAINER="@termux"
|
||
|
_COMMIT=babee5e172f680ff18354d9d9918c3f7356d48d3
|
||
|
TERMUX_PKG_VERSION=2021.03.30
|
||
|
TERMUX_PKG_SRCURL=https://github.com/fgont/ipv6toolkit.git
|
||
|
TERMUX_PKG_GIT_BRANCH=master
|
||
|
TERMUX_PKG_DEPENDS="libpcap"
|
||
|
TERMUX_PKG_RECOMMENDS="curl, perl"
|
||
|
TERMUX_PKG_BUILD_IN_SRC=true
|
||
|
TERMUX_PKG_EXTRA_MAKE_ARGS="PREFIX=$TERMUX_PREFIX"
|
||
|
|
||
|
termux_step_post_get_source() {
|
||
|
git fetch --unshallow
|
||
|
git checkout $_COMMIT
|
||
|
|
||
|
local version="$(git log -1 --format=%cs | sed 's/-/./g')"
|
||
|
if [ "$version" != "$TERMUX_PKG_VERSION" ]; then
|
||
|
echo -n "ERROR: The specified version \"$TERMUX_PKG_VERSION\""
|
||
|
echo " is different from what is expected to be: \"$version\""
|
||
|
return 1
|
||
|
fi
|
||
|
}
|
||
|
|
||
|
termux_step_pre_configure() {
|
||
|
rm -f Makefile
|
||
|
}
|