void-packages/srcpkgs/mg/template
Piotr Wójcik c0c31a3742 mg: update to 20180408.
Closes #14688.

Signed-off-by: Enno Boland <gottox@voidlinux.eu>
2018-05-26 14:22:26 +02:00

30 lines
883 B
Bash

# Template file for 'mg'
pkgname=mg
version=20180408
revision=1
hostmakedepends="pkg-config"
makedepends="libbsd-devel ncurses-devel"
homepage="https://github.com/hboetes/mg"
short_desc="Micro GNU/emacs"
maintainer="Juan RP <xtraeme@voidlinux.eu>"
license="Public Domain"
distfiles="https://github.com/hboetes/mg/archive/${version}.tar.gz"
checksum=85c1d47500fd042e427b670c630c228668bcc4f532a280f9ecce3d302229bbe4
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}
}