# Template file for 'mg'
pkgname=mg
version=20260227
revision=1
build_style=gnu-makefile
make_install_args="mandir=/usr/share/man"
hostmakedepends="pkg-config"
makedepends="libbsd-devel ncurses-devel"
short_desc="Micro GNU/emacs"
maintainer="Orphaned <orphan@voidlinux.org>"
license="Public Domain"
homepage="https://github.com/hboetes/mg"
changelog="https://github.com/hboetes/mg/releases"
distfiles="https://github.com/hboetes/mg/archive/${version}.tar.gz"
checksum=21877e912a63c69253538dc8ba6ae3beb1c89f35222e8381d14320f6537cec89

CFLAGS="-DTCSASOFT=0"

case "$XBPS_TARGET_MACHINE" in
	*-musl) CFLAGS+=" -DREG_STARTEND=0";;
esac
