TERMUX_PKG_HOMEPAGE=https://www.smartmontools.org/
TERMUX_PKG_DESCRIPTION="Utility programs (smartctl and smartd) to control and monitor storage systems"
TERMUX_PKG_LICENSE="GPL-2.0"
TERMUX_PKG_MAINTAINER="@termux"
TERMUX_PKG_VERSION="7.5"
TERMUX_PKG_REVISION=1
TERMUX_PKG_SRCURL="https://downloads.sourceforge.net/sourceforge/smartmontools/smartmontools-${TERMUX_PKG_VERSION}.tar.gz"
TERMUX_PKG_SHA256=690b83ca331378da9ea0d9d61008c4b22dde391387b9bbad7f29387f2595f76e
TERMUX_PKG_AUTO_UPDATE=true
TERMUX_PKG_DEPENDS="libandroid-glob, libc++, libcap-ng"
TERMUX_PKG_CONFFILES="etc/smartd.conf"
TERMUX_PKG_EXTRA_CONFIGURE_ARGS="--with-scriptpath=$TERMUX_PREFIX/bin"

termux_step_pre_configure() {
	LDFLAGS+=" -landroid-glob"
}
