# Template file for 'bootterm'
pkgname=bootterm
version=0.5
revision=1
build_style=gnu-makefile
# To overcome the linker getting handled compiler parameters (-Wl,-z,relro)
make_use_env=yes
short_desc="Simple terminal designed to ease connection to serial ports"
maintainer="Vincent Legoll <vincent.legoll@gmail.com>"
license="MIT"
homepage="https://github.com/wtarreau/bootterm"
distfiles="https://github.com/wtarreau/bootterm/archive/refs/tags/v${version}.tar.gz"
checksum=95cc154236655082fb60e8cdae15823e4624e108b8aead59498ac8f2263295ad

if [ "$CROSS_BUILD" ]; then
	make_build_args="CROSS_COMPILE=${XBPS_CROSS_TRIPLET}-"
fi

# Force termios.h usage instead of asm/termbits.h (for tcgetattr, etc.)
if [ "$XBPS_TARGET_LIBC" = "musl" ]; then
	make_build_args+=" CFLAGS=-DNO_TCGETS2"
fi

post_install() {
	vlicense LICENSE
}
