TERMUX_PKG_HOMEPAGE=https://pagure.io/mailcap
TERMUX_PKG_DESCRIPTION="List of standard media types and their usual file extension"
TERMUX_PKG_LICENSE="Public Domain"
TERMUX_PKG_MAINTAINER="@termux"
TERMUX_PKG_VERSION="13.0.0"
TERMUX_PKG_SRCURL=https://salsa.debian.org/debian/media-types/-/archive/${TERMUX_PKG_VERSION}/media-types-${TERMUX_PKG_VERSION}.tar.gz
TERMUX_PKG_SHA256=c66666216a43f0a081c19d96aa2202b5ba754900591217507d340df2200de242
TERMUX_PKG_AUTO_UPDATE=true
TERMUX_PKG_UPDATE_TAG_TYPE=newest-tag
TERMUX_PKG_PLATFORM_INDEPENDENT=true
TERMUX_PKG_BREAKS="mime-support"
TERMUX_PKG_REPLACES="mime-support"
TERMUX_PKG_PROVIDES="mime-support"
TERMUX_PKG_CONFFILES="etc/mime.types"
# etc/mime.types was previously in mutt:
TERMUX_PKG_CONFLICTS="mutt (<< 1.8.3-1)"

termux_step_make_install() {
	install -Dm600 "$TERMUX_PKG_SRCDIR/mime.types" "$TERMUX_PREFIX/etc/mime.types"
}
