# packages/minicom/auxbuild
#

# download and unpack tarball
TARVERSION="2.5"
TARDIR="${BUILD_PACKAGE}-${TARVERSION}"
TARBALL="${TARDIR}.tar.gz"

STUPID_NUM="3487"

build_download "http://alioth.debian.org/frs/download.php/${STUPID_NUM}/${TARBALL}"
build_unpack "${TARBALL}"

# invoke configure (directory, prefix, extra arguments)
build_autoconf "${TARDIR}" "" "--sysconfdir=/etc/minicom --disable-nls"

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

# strip the executable files
strip_files

# now install the wrapper script
BINFILE="${BUILDROOT}/usr/bin/minicom"
mv "${BINFILE}" "${BINFILE}.bin"
cp "src/minicom-wrapper.sh" "${BINFILE}"
chmod 0755 "${BINFILE}"

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