termux-packages/root-packages/bettercap/build.sh

32 lines
1.0 KiB
Bash
Raw Normal View History

2019-07-19 22:07:01 +02:00
TERMUX_PKG_HOMEPAGE=https://www.bettercap.org
TERMUX_PKG_DESCRIPTION="The Swiss Army knife for 802.11, BLE and Ethernet networks reconnaissance and MITM attacks"
TERMUX_PKG_LICENSE="GPL-3.0"
TERMUX_PKG_MAINTAINER="@termux"
2021-01-29 07:23:28 +01:00
TERMUX_PKG_VERSION=2.29
TERMUX_PKG_REVISION=1
2019-07-19 22:07:01 +02:00
TERMUX_PKG_SRCURL=https://github.com/bettercap/bettercap/archive/v${TERMUX_PKG_VERSION}.tar.gz
2021-01-29 07:23:28 +01:00
TERMUX_PKG_SHA256=c414be98a48d9f279460b325dddaef8479132a1470c6f305790d79e04dac1297
2019-07-19 22:07:01 +02:00
TERMUX_PKG_DEPENDS="libpcap, libusb"
2019-07-21 12:14:02 +02:00
# x86_64 seem to depend on libnetfilter_queue
TERMUX_PKG_BLACKLISTED_ARCHES="x86_64"
2019-07-19 22:07:01 +02:00
termux_step_configure() {
termux_setup_golang
export GOPATH=$TERMUX_PKG_BUILDDIR
export CGO_CFLAGS="-I$TERMUX_PREFIX/include"
mkdir -p "$GOPATH"/src/github.com/bettercap/
cp -a "$TERMUX_PKG_SRCDIR" "$GOPATH"/src/github.com/bettercap/bettercap
go get github.com/bettercap/recording
2019-07-19 22:07:01 +02:00
}
termux_step_make() {
cd src/github.com/bettercap/bettercap
2019-07-19 22:07:01 +02:00
make build
}
termux_step_make_install() {
cd src/github.com/bettercap/bettercap
make install
2019-07-19 22:07:01 +02:00
}