# packages/gdbm/auxbuild
#

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

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

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

# run make, make install (directory, extra arguments)
build_make "${PKGDIR}"
build_make "${PKGDIR}" "INSTALL_ROOT=${BUILDROOT}" "install" "install-compat"

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