24 lines
740 B
Plaintext
24 lines
740 B
Plaintext
# Template file for 'mg'
|
|
pkgname=mg
|
|
version=20141007
|
|
revision=1
|
|
makedepends="clens libbsd-devel ncurses-devel"
|
|
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"
|
|
checksum=591adc66e4e4d620375b7fd3e40fc906135a154f06e26f12e58889e4447a9461
|
|
|
|
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}
|
|
}
|