Consolidate more things

This commit is contained in:
Ryan Hughes committed 2025-10-27 00:38:25 -04:00
1 parent 51a3318b10
commit b853ddc51a
13 files changed
+50 -46

No files matched your search

+21
View File
@@ -0,0 +1,21 @@
# Common path variables for Omarchy package build system
# This file should be sourced after setting BUILD_ROOT
# Default architecture
ARCH=${ARCH:-x86_64}
# Core directories (architecture-independent)
BUILD_DIR="$BUILD_ROOT/build"
SRC_DIR="$BUILD_ROOT/src"
LOG_DIR="$BUILD_ROOT/logs"
PKGBUILDS_DIR="$BUILD_ROOT/pkgbuilds"
# Function to update architecture-specific paths
# Call this after changing ARCH variable
update_arch_paths() {
BUILD_OUTPUT_DIR="$BUILD_ROOT/build-output/$ARCH" # Unsigned packages
REPO_DIR="$BUILD_ROOT/pkgs.omarchy.org/$ARCH" # Repository (signed packages)
}
# Initialize architecture-specific directories with default ARCH
update_arch_paths