0
0
mirror of https://github.com/termux-pacman/glibc-packages.git synced 2024-11-23 14:46:18 +00:00
glibc-packages/gpkg/ca-certificates/build.sh
Ivan Max f0a9668ad8
update pkgs (#293)
gpkg/ca-certificates
gpkg/clang
gpkg/compiler-rt
gpkg/lld
gpkg/llvm
gpkg/vulkan-headers
gpkg/vulkan-icd-loader
gpkg/vulkan-tools
gpkg/spirv-llvm-translator
gpkg/postgresql
gpkg/liblzma
gpkg/xkeyboard-config
2024-10-05 00:50:38 +03:00

25 lines
1.1 KiB
Bash

TERMUX_PKG_HOMEPAGE=https://src.fedoraproject.org/rpms/ca-certificates
TERMUX_PKG_DESCRIPTION="Common CA certificates"
TERMUX_PKG_LICENSE="GPL-3.0"
TERMUX_PKG_MAINTAINER="@termux-pacman"
_DATE=2024-09-24
TERMUX_PKG_VERSION=${_DATE//-/.}
TERMUX_PKG_SRCURL=https://curl.se/ca/cacert-${_DATE}.pem
TERMUX_PKG_SHA256=189d3cf6d103185fba06d76c1af915263c6d42225481a1759e853b33ac857540
TERMUX_PKG_SKIP_SRC_EXTRACT=true
TERMUX_PKG_PLATFORM_INDEPENDENT=true
termux_step_make_install() {
install -d ${TERMUX_PREFIX}/etc/{ca-certificates,ssl/certs}/
termux_download $TERMUX_PKG_SRCURL \
${TERMUX_PREFIX}/etc/ca-certificates/cacert.pem.new \
$TERMUX_PKG_SHA256
rm -f ${TERMUX_PREFIX}/etc/ca-certificates/cacert.pem
mv ${TERMUX_PREFIX}/etc/ca-certificates/cacert.pem.new ${TERMUX_PREFIX}/etc/ca-certificates/cacert.pem
ln -sfr ${TERMUX_PREFIX}/etc/ca-certificates/cacert.pem ${TERMUX_PREFIX}/etc/ssl/cert.pem
ln -sfr ${TERMUX_PREFIX}/etc/ca-certificates/cacert.pem ${TERMUX_PREFIX}/etc/ssl/certs/ca-certificates.crt
ln -sfr ${TERMUX_PREFIX}/etc/ca-certificates/cacert.pem ${TERMUX_PREFIX}/etc/ssl/certs/ca-bundle.crt
}