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
+4
View File
@@ -76,6 +76,10 @@ LocalFileSigLevel = Optional
#[core-testing] #[core-testing]
#Include = /etc/pacman.d/mirrorlist #Include = /etc/pacman.d/mirrorlist
[xlibre]
SigLevel = Required DatabaseOptional
Server = https://packages.xlibre.net/arch/stable/$arch
[stormux] [stormux]
SigLevel = Required DatabaseOptional SigLevel = Required DatabaseOptional
Server = https://packages.stormux.org/$arch Server = https://packages.stormux.org/$arch
@@ -52,10 +52,29 @@ install_rhvoice_english_fixes() {
return "$installStatus" return "$installStatus"
} }
install_xlibre_key() {
local keyUrl="https://xlibre-arch.github.io/xlibre-archlinux.asc"
local keyId="B97F7C613F359424"
local keyFile
keyFile="$(mktemp)"
echo "Adding XLibre repository key..."
if ! curl -fsSL "$keyUrl" -o "$keyFile"; then
rm -f "$keyFile"
return 1
fi
pacman-key --add "$keyFile"
pacman-key --lsign-key "$keyId"
rm -f "$keyFile"
}
# Initialize pacman keyring # Initialize pacman keyring
echo "Initializing pacman keyring..." echo "Initializing pacman keyring..."
pacman-key --init pacman-key --init
pacman-key --populate archlinux pacman-key --populate archlinux
install_xlibre_key
# Add Stormux repository key # Add Stormux repository key
echo "Adding Stormux repository key..." echo "Adding Stormux repository key..."
+55 -2
View File
@@ -1286,6 +1286,35 @@ enable_multilib_repo() {
"$pacmanConf" "$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() { copy_rhvoice_english_fixes() {
local sourceDir="/etc/RHVoice/dicts/English" local sourceDir="/etc/RHVoice/dicts/English"
local targetDir="$mountPoint/etc/RHVoice/dicts/English" local targetDir="$mountPoint/etc/RHVoice/dicts/English"
@@ -1302,8 +1331,8 @@ copy_rhvoice_english_fixes() {
install_base_system() { install_base_system() {
log_info "=== Installing Base System ===" log_info "=== Installing Base System ==="
# Copy pacman config with Stormux repo # Copy pacman config with XLibre and Stormux repositories
log_info "Configuring pacman with Stormux repository" log_info "Configuring pacman with XLibre and Stormux repositories"
log_info "Configuring package manager" log_info "Configuring package manager"
local copyItems=( local copyItems=(
@@ -1345,6 +1374,10 @@ install_base_system() {
enable_multilib_repo "$mountPoint/etc/pacman.conf" enable_multilib_repo "$mountPoint/etc/pacman.conf"
fi fi
if ! install_xlibre_key; then
return 1
fi
# Define package groups # Define package groups
local basePackages=( local basePackages=(
base base-devel linux linux-firmware base base-devel linux linux-firmware
@@ -1797,6 +1830,26 @@ fi
pacman-key --init pacman-key --init
pacman-key --populate archlinux 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 # Import Stormux key if present
if [[ -f /usr/share/pacman/keyrings/stormux.gpg ]]; then if [[ -f /usr/share/pacman/keyrings/stormux.gpg ]]; then
if ! pacman-key --add /usr/share/pacman/keyrings/stormux.gpg; then if ! pacman-key --add /usr/share/pacman/keyrings/stormux.gpg; then
+4
View File
@@ -76,6 +76,10 @@ LocalFileSigLevel = Optional
#[core-testing] #[core-testing]
#Include = /etc/pacman.d/mirrorlist #Include = /etc/pacman.d/mirrorlist
[xlibre]
SigLevel = Required DatabaseOptional
Server = https://packages.xlibre.net/arch/stable/$arch
[stormux] [stormux]
SigLevel = Required DatabaseOptional SigLevel = Required DatabaseOptional
Server = https://packages.stormux.org/$arch Server = https://packages.stormux.org/$arch