# packages/usbutils/auxbuild
#

# download and unpack tarball
TARVERSION="0.90"
TARDIR="${BUILD_PACKAGE}-${TARVERSION}"
TARBALL="${TARDIR}.tar.gz"
build_download "http://www.kernel.org/pub/linux/utils/usb/usbutils/${TARBALL}"
build_unpack "${TARBALL}"
PKGDIR="${TARDIR}"

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

(
    cd "Distn/${PKGDIR}"
    aclocal
    autoconf
    automake

)

# invoke configure (directory, prefix, extra arguments)
build_autoconf "${PKGDIR}"

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

# remove stray pkgconfig file
rm -r "${BUILDROOT}/usr/share/pkgconfig"

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