From 6774bf8df63c6ef57b0ed08f191f03875002e9c2 Mon Sep 17 00:00:00 2001 From: Vincent Legoll Date: Sun, 27 Oct 2024 10:27:15 +0100 Subject: [PATCH] New package: bootterm-0.5 --- srcpkgs/bootterm/template | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 srcpkgs/bootterm/template diff --git a/srcpkgs/bootterm/template b/srcpkgs/bootterm/template new file mode 100644 index 00000000000..8047873b2a2 --- /dev/null +++ b/srcpkgs/bootterm/template @@ -0,0 +1,26 @@ +# 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 " +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 +}