ca-certificates: Use termux_download

This commit is contained in:
Fredrik Fornwall 2016-06-06 17:00:15 -04:00
parent 3f07afc44d
commit 8f1cc295ed

View File

@ -5,7 +5,7 @@ TERMUX_PKG_PLATFORM_INDEPENDENT=yes
termux_step_make_install () {
CERTFILE=$TERMUX_PKG_TMPDIR/cert.pem
curl -o $CERTFILE https://raw.githubusercontent.com/bagder/ca-bundle/master/ca-bundle.crt
termux_download https://raw.githubusercontent.com/bagder/ca-bundle/master/ca-bundle.crt $CERTFILE
if grep -q 'SHA1: 5df367cda83086392e1acdf22bfef00c48d5eba6' $CERTFILE; then
CERT_DIR=$TERMUX_PREFIX/etc/tls
mkdir -p $CERT_DIR