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