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

CFLAGS="-DTCSASOFT=0"

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