#!/bin/sh

. config/options $1

$SCRIPTS/build toolchain

NCURSES_DIR=`ls -d $PKG_BUILD`

cp -r "$NCURSES_DIR" "$BUILD/ncurses-host" || rm -rf "$BUILD/ncurses-host"
mv "$BUILD/ncurses-host" "$NCURSES_DIR"
