mg: update to 20220614.

Add missing libmd makedepend, fix compilation issue,
and use the appropriate build style.
This commit is contained in:
Mat Boehlke 2022-09-05 18:37:00 -05:00 committed by classabbyamp
parent a37f74d4ea
commit 2207744e4f

View File

@ -1,30 +1,20 @@
# Template file for 'mg'
pkgname=mg
version=20210314
version=20220614
revision=1
build_style=gnu-makefile
make_install_args="mandir=/usr/share/man"
hostmakedepends="pkg-config"
makedepends="libbsd-devel ncurses-devel"
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=6820e76a0e27d9a744624d421b3b30b0030140c2a817df1310b25c3abe397106
checksum=d3bc16baba82457c4f60ecd258762ee2ed848064f79729fe92e29bfd181af121
CFLAGS="-DTCSASOFT=0"
case "$XBPS_TARGET_MACHINE" in
*-musl) CFLAGS+=" -DREG_STARTEND=0";;
esac
do_configure() {
sed -i "s,\(BSD_CPPFLAGS:=\).*,\1 -isystem ${XBPS_CROSS_BASE}/usr/include/bsd -DLIBBSD_OVERLAY,g" GNUmakefile
sed -i "s,\(BSD_LIBS:=\).*,\1 -lbsd,g" GNUmakefile
}
do_build() {
make CC="$CC" CFLAGS="$CFLAGS" prefix=/usr ${makejobs}
}
do_install() {
vmkdir usr/bin
make install prefix=/usr bindir=/usr/bin mandir=/usr/share/man DESTDIR=${DESTDIR}
}