void-packages/srcpkgs/mg/template

24 lines
740 B
Text
Raw Normal View History

2012-01-29 09:30:54 +00:00
# Template file for 'mg'
pkgname=mg
2014-11-28 07:28:05 +00:00
version=20141127
2014-07-13 09:08:41 +00:00
revision=1
makedepends="clens libbsd-devel ncurses-devel"
2012-01-29 09:30:54 +00:00
homepage="http://homepage.boetes.org/software/mg"
short_desc="Micro GNU/emacs"
maintainer="Juan RP <xtraeme@gmail.com>"
license="Public Domain"
distfiles="$homepage/mg-$version.tar.gz"
2014-11-28 07:28:05 +00:00
checksum=33cccebca1cb129de5f26d74750d5a1654bd461e6ab0785703de9f16c19b0ba6
2012-01-29 09:30:54 +00:00
2014-02-21 13:53:10 +00:00
do_configure() {
2014-07-13 09:08:41 +00:00
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
2014-02-21 13:53:10 +00:00
}
do_build() {
2014-07-13 09:08:41 +00:00
make CC="$CC" CFLAGS="$CFLAGS" prefix=/usr ${makejobs}
2012-01-29 09:30:54 +00:00
}
do_install() {
2014-07-13 09:08:41 +00:00
vmkdir usr/bin
make install prefix=/usr bindir=/usr/bin mandir=/usr/share/man DESTDIR=${DESTDIR}
2012-01-29 09:30:54 +00:00
}