#
# set -o errexit -o noglob are assumed.
#

pkg_ca_certificates_install_make_pre() {
	${PKG_DESTDIR}/../ca-certificates/certdata2pem_host
};

pkg_ca_certificates_install_make_post() {
	ex_rtl_fileop cd "${PKG_DESTDIR}/share/ca-certificates";
	set +o noglob
	find . -name '*.crt' | sort | cut -b3- > ${PKG_DESTDIR}/etc/ca-certificates.conf
	set -o noglob
};

# vim:filetype=sh