# packages/strace/auxbuild
#

# download and unpack tarball
TARVERSION="4.5.16"
TARDIR="${BUILD_PACKAGE}-${TARVERSION}"
TARBALL="${TARDIR}.tar.bz2"
PKGDIR="${TARDIR}"
build_download "http://switch.dl.sourceforge.net/sourceforge/strace/${TARBALL}"
build_unpack "${TARBALL}"

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

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

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

# save some space
rm "${BUILDROOT}/usr/bin/strace-graph"
"${ARCH_CC_PREFIX}strip" "${BUILDROOT}/usr/bin/strace"

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