# packages/dialog/auxbuild
#

# download and unpack tarball
TARVERSION="1.1-20110302"
TARDIR="${BUILD_PACKAGE}-${TARVERSION}"
TARBALL="${BUILD_PACKAGE}.tar.gz"
build_download "ftp://invisible-island.net/dialog/${TARBALL}"
build_unpack "${TARBALL}"

# apply patches matching pattern (repository, patch prefix)
build_patch "${TARDIR}" "*.patch"

# invoke configure (directory, prefix, extra arguments)
WITH_NCURSES="--with-ncurses"
[ "${USING_NCURSESW}" -ne 0 ] && WITH_NCURSES="--with-ncursesw --enable-widec"
build_autoconf "${TARDIR}" "" "--disable-nls ${WITH_NCURSES}"

# run make, make install (directory, extra arguments)
build_make "${TARDIR}"
build_make "${TARDIR}" "install"

strip_files

true
# vim: ts=4:sw=4:expandtab:syntax=sh
