mg: update to 20140414.

This commit is contained in:
Juan RP 2014-07-13 11:08:41 +02:00
parent f3c4b23121
commit 6ba4391efc

View file

@ -1,27 +1,23 @@
# Template file for 'mg'
pkgname=mg
version=20110905
revision=3
makedepends="ncurses-devel"
version=20140414
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=1cd37d7e6a3eecc890a5718c38b8f38495057ba93856762a756ccee2f9618229
checksum=89ce25ee13cedc14c3c5c7b76d7a9e0ea38a060ad61e90ac43258d8dadf0d065
do_configure() {
if [ "$CROSS_BUILD" ]; then
sed -e "s,/usr/include,$XBPS_CROSS_BASE/include,g" -i configure
fi
CC="$CC" ./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" ${makejobs}
make CC="$CC" CFLAGS="$CFLAGS" prefix=/usr ${makejobs}
}
do_install() {
vinstall mg 755 usr/bin
vinstall mg.1 644 usr/share/man/man1
vmkdir usr/bin
make install prefix=/usr bindir=/usr/bin mandir=/usr/share/man DESTDIR=${DESTDIR}
}