bettercap: build for musl

This commit is contained in:
Đoàn Trần Công Danh 2020-09-12 19:51:26 +07:00
parent b506cf29ad
commit fe1cabc031

View file

@ -1,18 +1,18 @@
# Template file for 'bettercap'
pkgname=bettercap
version=2.27.1
revision=1
revision=2
build_style=go
go_import_path=github.com/bettercap/bettercap
hostmakedepends="git pkg-config"
hostmakedepends="pkg-config"
makedepends="libpcap-devel libnetfilter_queue-devel libusb-devel"
short_desc="Network attack and monitoring framework"
maintainer="Andrea Brancaleoni <abc@pompel.me>"
maintainer="Orphaned <orphan@voidlinux.org>"
license="GPL-3.0-only"
homepage="https://github.com/bettercap/bettercap"
distfiles="https://github.com/bettercap/bettercap/archive/v${version}.tar.gz"
checksum=dd4349a43486ec300a0f777f7c53b2fff608fb82dbba720c144b85538811405c
case "$XBPS_TARGET_MACHINE" in
x86_64-musl) broken="fails to build" ;;
esac
if [ "$XBPS_TARGET_LIBC" = musl ]; then
CPPFLAGS="-Du_int8_t=uint8_t -Du_int16_t=uint16_t -Du_int32_t=uint32_t"
fi