Consolidate more things

This commit is contained in:
Ryan Hughes
2025-10-27 00:38:25 -04:00
parent 51a3318b10
commit b853ddc51a
13 changed files with 50 additions and 46 deletions
-1
View File
@@ -1,4 +1,3 @@
#!/bin/bash
# Docker helper functions for Omarchy package build system
# Check Docker is available and running
-1
View File
@@ -1,4 +1,3 @@
#!/bin/bash
# Common printing functions for Omarchy scripts
# Colors
+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