# packages/minicom/auxbuild
#

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

STUPID_NUM="2157"

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

# apply patches matching pattern (repository, patch prefix)
build_patch "${TARDIR}" "${BUILD_PACKAGE}-ALL-"
build_patch "${TARDIR}" "${BUILD_PACKAGE}-${TARVERSION}-"

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

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

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

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