Use official xlibre repository on x86_64 systems. This hopefully means less packages for me to maintain for 2 systems.

This commit is contained in:
Storm Dragon
2026-07-15 16:05:27 -04:00
parent 1f7aea6c7c
commit 99a944f903
4 changed files with 82 additions and 2 deletions
+55 -2
View File
@@ -1286,6 +1286,35 @@ enable_multilib_repo() {
"$pacmanConf"
}
install_xlibre_key() {
local keyUrl="https://xlibre-arch.github.io/xlibre-archlinux.asc"
local keyId="B97F7C613F359424"
local keyFile
keyFile="$(mktemp)"
log_info "Adding XLibre repository key"
if ! curl -fsSL "$keyUrl" -o "$keyFile"; then
rm -f "$keyFile"
log_error "Could not download XLibre repository key"
return 1
fi
if ! pacman-key --add "$keyFile"; then
rm -f "$keyFile"
log_error "Could not add XLibre repository key"
return 1
fi
if ! pacman-key --lsign-key "$keyId"; then
rm -f "$keyFile"
log_error "Could not locally sign XLibre repository key"
return 1
fi
rm -f "$keyFile"
}
copy_rhvoice_english_fixes() {
local sourceDir="/etc/RHVoice/dicts/English"
local targetDir="$mountPoint/etc/RHVoice/dicts/English"
@@ -1302,8 +1331,8 @@ copy_rhvoice_english_fixes() {
install_base_system() {
log_info "=== Installing Base System ==="
# Copy pacman config with Stormux repo
log_info "Configuring pacman with Stormux repository"
# Copy pacman config with XLibre and Stormux repositories
log_info "Configuring pacman with XLibre and Stormux repositories"
log_info "Configuring package manager"
local copyItems=(
@@ -1345,6 +1374,10 @@ install_base_system() {
enable_multilib_repo "$mountPoint/etc/pacman.conf"
fi
if ! install_xlibre_key; then
return 1
fi
# Define package groups
local basePackages=(
base base-devel linux linux-firmware
@@ -1797,6 +1830,26 @@ fi
pacman-key --init
pacman-key --populate archlinux
# Import XLibre key so installed systems keep using the official XLibre repository.
keyFile="\$(mktemp)"
if curl -fsSL https://xlibre-arch.github.io/xlibre-archlinux.asc -o "\$keyFile"; then
if ! pacman-key --add "\$keyFile"; then
echo "ERROR: Could not add XLibre signing key to pacman keyring"
rm -f "\$keyFile"
exit 1
fi
if ! pacman-key --lsign-key B97F7C613F359424; then
echo "ERROR: Could not locally sign XLibre pacman key"
rm -f "\$keyFile"
exit 1
fi
else
echo "ERROR: Could not download XLibre signing key"
rm -f "\$keyFile"
exit 1
fi
rm -f "\$keyFile"
# Import Stormux key if present
if [[ -f /usr/share/pacman/keyrings/stormux.gpg ]]; then
if ! pacman-key --add /usr/share/pacman/keyrings/stormux.gpg; then