# packages/smartmontools/auxbuild
#

# download and unpack tarball
TARVERSION="6.3"
TARDIR="${BUILD_PACKAGE}-${TARVERSION}"
TARBALL="${TARDIR}.tar.gz"
build_download "http://downloads.sourceforge.net/smartmontools/${TARBALL}"
build_unpack "${TARBALL}"
PKGDIR="${TARDIR}"

# invoke configure (directory, prefix, extra arguments)
build_autoconf "${PKGDIR}" "" "--with-systemdenvfile=no --with-systemdsystemunitdir=no"

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

# prune some unused files
rm -rf "${BUILDROOT}/etc/smartd_warning.d" "${BUILDROOT}/etc/smartd_warning.sh"
strip_files

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