# packages/psmisc/auxbuild
#

# download and unpack tarball
TARVERSION="22.5"
TARDIR="${BUILD_PACKAGE}-${TARVERSION}"
TARBALL="${TARDIR}.tar.gz"
build_download "http://switch.dl.sourceforge.net/sourceforge/psmisc/${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}" "" "--disable-nls --disable-rpath"

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

rm -f "${BUILDROOT}/usr/bin/"{oldfuser,killall,pstree.x11}

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