# packages/wpa_supplicant/auxbuild
#

# download and unpack tarball
TARVERSION="0.6.9"
TARDIR="${BUILD_PACKAGE}-${TARVERSION}"
TARBALL="${TARDIR}.tar.gz"
build_download "http://distfiles.gentoo.org/distfiles/${TARBALL}"
build_unpack "${TARBALL}"
PKGDIR="${TARDIR}"

# Install the config file
cp defconfig "Distn/${PKGDIR}/wpa_supplicant/.config"

# run make, make install (directory, extra arguments)
build_make "${PKGDIR}/wpa_supplicant" "CC=${ARCH_CC_PREFIX}gcc"
build_make "${PKGDIR}/wpa_supplicant" "BINDIR=/usr/sbin" "install"

# copy across static content
cp -a static/* "${BUILDROOT}"

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