void-packages/srcpkgs/bettercap/template

22 lines
756 B
Bash

# Template file for 'bettercap'
pkgname=bettercap
version=2.32.0
revision=1
build_style=go
go_import_path=github.com/bettercap/bettercap
hostmakedepends="pkg-config"
makedepends="libpcap-devel libnetfilter_queue-devel libusb-devel"
short_desc="Network attack and monitoring framework"
maintainer="cinerea0 <cinerea0@protonmail.com>"
license="GPL-3.0-only"
homepage="https://github.com/bettercap/bettercap"
distfiles="https://github.com/bettercap/bettercap/archive/refs/tags/v${version}.tar.gz"
checksum=ea28d4d533776a328a54723a74101d1720016ffe7d434bf1d7ab222adb397ac6
# fix: collect2: fatal error: cannot find 'ld'
LDFLAGS="-fuse-ld=bfd"
if [ "$XBPS_TARGET_LIBC" = musl ]; then
CPPFLAGS="-Du_int8_t=uint8_t -Du_int16_t=uint16_t -Du_int32_t=uint32_t"
fi