# Template file for 'most'
pkgname="most"
version=5.0.0a
revision=5
build_style=gnu-configure
configure_args="--with-slang=${XBPS_CROSS_BASE}/usr"
hostmakedepends="slang-devel"
makedepends="slang-devel"
short_desc="Paging program that displays, one windowful at a time, the contents of a file"
maintainer="Jens E. Becker <v2px@v2px.de>"
license="GPL-2"
homepage="ftp://space.mit.edu/pub/davis/most/"
distfiles="ftp://space.mit.edu/pub/davis//${pkgname}/${pkgname}-${version}.tar.bz2"
checksum=94cb5a2e71b6b9063116f4398a002a757e59cd1499f1019dde8874f408485aa9

post_configure() {
	sed -e 's,$(INSTALL) -s,$(INSTALL),g' -i src/Makefile
	sed -e 's,\($(CC)\) \($(OBJDIR)/chkslang.o -o $(OBJDIR)/chkslang\),$(BUILD_CC) \2,g' -i src/Makefile
	sed -e '/chkslang_C_FLAGS/s,\$(COMPILE_CMD),\$(BUILD_CC) -c,g' -i src/Makefile
}
