url=$mirror/ncurses.tar.gz

fetch() {
	wget -c $url -O src/ncurses.tar.gz
}

unpack() {
	pushd src
	[ -d ncurses-5.9 ] || tar xzf ncurses.tar.gz
	popd
}

build() {
	pushd src/ncurses-5.9
	CC=musl-gcc ./configure --prefix=$top/cross
	make CC=musl-gcc -j$nprocs
	popd
}

install() {
	pushd src/ncurses-5.9
	make install
	popd
}

url=$mirror/ncurses.tar.gz

fetch() {
	wget -c $url -O src/ncurses.tar.gz
}

unpack() {
	pushd src
	[ -d ncurses-5.9 ] || tar xzf ncurses.tar.gz
	popd
}

build() {
	pushd src/ncurses-5.9
	wget -c $mirror/ncurses-fallback.c -O ncurses/fallback.c
	CC=musl-gcc ./configure --without-tests --prefix=$top/cross \
		--with-fallbacks="vt100"
	make CC=musl-gcc -j$nprocs
	popd
}

install() {
	pushd src/ncurses-5.9
	make install
	popd
}

Update ncurses with vt100 support
Update ncurses with vt100 support
