46 lines
1.6 KiB
Bash
46 lines
1.6 KiB
Bash
TERMUX_PKG_HOMEPAGE=https://github.com/termux
|
|
TERMUX_PKG_DESCRIPTION="GPG public keys for the official Termux repositories"
|
|
TERMUX_PKG_LICENSE="Apache-2.0"
|
|
TERMUX_PKG_MAINTAINER="@termux"
|
|
TERMUX_PKG_VERSION=3.10
|
|
TERMUX_PKG_SKIP_SRC_EXTRACT=true
|
|
TERMUX_PKG_PLATFORM_INDEPENDENT=true
|
|
TERMUX_PKG_ESSENTIAL=true
|
|
|
|
termux_step_make_install() {
|
|
if [ "$TERMUX_PACKAGE_FORMAT" = "debian" ]; then
|
|
local GPG_DIR="$TERMUX_PREFIX/etc/apt/trusted.gpg.d"
|
|
else
|
|
local GPG_DIR="$TERMUX_PREFIX/share/pacman/keyrings"
|
|
fi
|
|
|
|
mkdir -p $GPG_DIR
|
|
|
|
# Maintainer-specific keys.
|
|
install -Dm600 $TERMUX_PKG_BUILDER_DIR/agnostic-apollo.gpg $GPG_DIR
|
|
install -Dm600 $TERMUX_PKG_BUILDER_DIR/grimler.gpg $GPG_DIR
|
|
install -Dm600 $TERMUX_PKG_BUILDER_DIR/kcubeterm.gpg $GPG_DIR
|
|
install -Dm600 $TERMUX_PKG_BUILDER_DIR/landfillbaby.gpg $GPG_DIR
|
|
install -Dm600 $TERMUX_PKG_BUILDER_DIR/mradityaalok.gpg $GPG_DIR
|
|
install -Dm600 $TERMUX_PKG_BUILDER_DIR/2096779623.gpg $GPG_DIR
|
|
|
|
# Key for automatic builds (via CI).
|
|
install -Dm600 $TERMUX_PKG_BUILDER_DIR/termux-autobuilds.gpg $GPG_DIR
|
|
|
|
# Creation of trusted files
|
|
if [ "$TERMUX_PACKAGE_FORMAT" = "pacman" ]; then
|
|
install -Dm600 $TERMUX_PKG_BUILDER_DIR/termux-pacman.gpg $GPG_DIR
|
|
echo "998DE27318E867EA976BA877389CEED64573DFCA:4:" > $GPG_DIR/termux-pacman-trusted
|
|
fi
|
|
}
|
|
|
|
termux_step_create_debscripts() {
|
|
if [ "$TERMUX_PACKAGE_FORMAT" = "pacman" ]; then
|
|
echo "if [ ! -d $TERMUX_PREFIX/etc/pacman.d/ ]; then" > postupg
|
|
echo " pacman-key --init" >> postupg
|
|
echo "fi" >> postupg
|
|
echo "pacman-key --populate" >> postupg
|
|
echo "post_upgrade" > postinst
|
|
fi
|
|
}
|