# packages/mtd-utils/auxbuild
#

# check out git repository (URL, ref, destination)
build_git_clone "ord:/home/git/${BUILD_PACKAGE}" "stable_or_development" "${BUILD_PACKAGE}"

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

# apply patches matching pattern (repository, patch prefix)
build_patch "${BUILD_PACKAGE}" "*"

# run make, make install (directory, extra arguments)
build_make "${BUILD_PACKAGE}" "WITHOUT_XATTR=1"
DESTDIR=`pwd`/Buildroot/$BUILD_MACHINE
build_make "${BUILD_PACKAGE}" "DESTDIR=${DESTDIR}" "install"

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