Update build process to use local files too
This commit is contained in:
3 files changed
+186
-139
No files matched your search
@@ -7,10 +7,8 @@ set -e
|
|||||||
BUILD_ROOT=$(realpath "${BASH_SOURCE[0]%/*}/..")
|
BUILD_ROOT=$(realpath "${BASH_SOURCE[0]%/*}/..")
|
||||||
source "$BUILD_ROOT/lib/message-helpers.sh"
|
source "$BUILD_ROOT/lib/message-helpers.sh"
|
||||||
|
|
||||||
# Set default architecture
|
|
||||||
ARCH=${ARCH:-x86_64}
|
ARCH=${ARCH:-x86_64}
|
||||||
|
|
||||||
# Prepare build directories
|
|
||||||
ARCH_DIR="$BUILD_ROOT/output/$ARCH"
|
ARCH_DIR="$BUILD_ROOT/output/$ARCH"
|
||||||
SRC_DIR="$BUILD_ROOT/src"
|
SRC_DIR="$BUILD_ROOT/src"
|
||||||
BUILD_DIR="$BUILD_ROOT/build"
|
BUILD_DIR="$BUILD_ROOT/build"
|
||||||
@@ -124,6 +122,7 @@ DOCKER_ARGS=(
|
|||||||
-v "$BUILD_ROOT/output:/output"
|
-v "$BUILD_ROOT/output:/output"
|
||||||
-v "$SRC_DIR:/src"
|
-v "$SRC_DIR:/src"
|
||||||
-v "$BUILD_DIR:/build:ro"
|
-v "$BUILD_DIR:/build:ro"
|
||||||
|
-v "$BUILD_ROOT/pkgbuilds:/pkgbuilds:ro"
|
||||||
)
|
)
|
||||||
|
|
||||||
# Use local pacman cache if you already have one on host to speed up repeat runs
|
# Use local pacman cache if you already have one on host to speed up repeat runs
|
||||||
|
|||||||
+165
-129
@@ -7,7 +7,6 @@
|
|||||||
# Sync pacman database
|
# Sync pacman database
|
||||||
sudo pacman -Sy
|
sudo pacman -Sy
|
||||||
|
|
||||||
# Get architecture (default to x86_64 if not set)
|
|
||||||
ARCH=${ARCH:-x86_64}
|
ARCH=${ARCH:-x86_64}
|
||||||
OUTPUT_DIR="/output/$ARCH"
|
OUTPUT_DIR="/output/$ARCH"
|
||||||
|
|
||||||
@@ -16,10 +15,8 @@ echo "==> Target architecture: $ARCH"
|
|||||||
echo "==> Output directory: $OUTPUT_DIR"
|
echo "==> Output directory: $OUTPUT_DIR"
|
||||||
echo "==> Processing omarchy-aur.packages"
|
echo "==> Processing omarchy-aur.packages"
|
||||||
|
|
||||||
# Create output directory if it doesn't exist
|
|
||||||
mkdir -p "$OUTPUT_DIR"
|
mkdir -p "$OUTPUT_DIR"
|
||||||
|
|
||||||
# Track failures
|
|
||||||
FAILED_PACKAGES=""
|
FAILED_PACKAGES=""
|
||||||
SUCCESSFUL_PACKAGES=""
|
SUCCESSFUL_PACKAGES=""
|
||||||
SKIPPED_PACKAGES=""
|
SKIPPED_PACKAGES=""
|
||||||
@@ -40,44 +37,33 @@ get_local_version() {
|
|||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
# Build a GitHub package
|
# Common build logic for all package types
|
||||||
build_github_package() {
|
# Expects to be called with pkg directory already prepared in /src/$pkg
|
||||||
local github_repo="$1"
|
build_package() {
|
||||||
|
local pkg="$1"
|
||||||
local opts="$2"
|
local opts="$2"
|
||||||
|
local check_repo="$3" # Optional: repository to check for updates (for -git packages)
|
||||||
|
|
||||||
echo ""
|
cd "/src/$pkg" || return 1
|
||||||
echo " -> Processing GitHub: $github_repo..."
|
|
||||||
|
|
||||||
# Extract owner and repo name
|
# Handle version checking
|
||||||
local owner=$(echo "$github_repo" | cut -d'/' -f1)
|
local should_build=true
|
||||||
local repo=$(echo "$github_repo" | cut -d'/' -f2)
|
|
||||||
|
|
||||||
if [[ -z "$owner" ]] || [[ -z "$repo" ]]; then
|
|
||||||
echo " ❌ Invalid GitHub format. Use: owner/repo"
|
|
||||||
FAILED_PACKAGES="$FAILED_PACKAGES $github_repo"
|
|
||||||
return 1
|
|
||||||
fi
|
|
||||||
|
|
||||||
# Use repo name as package name for local tracking
|
|
||||||
local pkg="$repo"
|
|
||||||
|
|
||||||
echo " GitHub repository: https://github.com/$github_repo"
|
|
||||||
|
|
||||||
# Check for always-build option
|
# Check for always-build option
|
||||||
if [[ "$opts" == *"always-build"* ]]; then
|
if [[ "$opts" == *"always-build"* ]]; then
|
||||||
echo " Note: Package flagged as always-build, will use timestamp version"
|
echo " Note: Package flagged as always-build, will use timestamp version"
|
||||||
# Skip version checking for always-build packages
|
|
||||||
elif [[ "$pkg" == *-git ]]; then
|
|
||||||
# For -git packages, check if we need to rebuild based on commit
|
|
||||||
# Check if a source repo is specified (for packages where PKGBUILD repo != source repo)
|
|
||||||
local source_repo=""
|
|
||||||
if [[ "$opts" =~ source:([^ ]+) ]]; then
|
|
||||||
source_repo="${BASH_REMATCH[1]}"
|
|
||||||
echo " Checking source repository: $source_repo"
|
|
||||||
fi
|
|
||||||
|
|
||||||
# Use source repo if specified, otherwise use the PKGBUILD repo
|
# Inject timestamp into pkgver to ensure unique filename
|
||||||
local check_repo="${source_repo:-$github_repo}"
|
local timestamp=$(date +%Y%m%d.%H%M%S)
|
||||||
|
echo " Injecting timestamp: $timestamp"
|
||||||
|
|
||||||
|
if grep -q '^pkgver=' PKGBUILD; then
|
||||||
|
local current_pkgver=$(grep '^pkgver=' PKGBUILD | cut -d'=' -f2 | tr -d "'\"")
|
||||||
|
sed -i "s/^pkgver=.*/pkgver=${current_pkgver}.${timestamp}/" PKGBUILD
|
||||||
|
echo " Modified pkgver to: ${current_pkgver}.${timestamp}"
|
||||||
|
fi
|
||||||
|
elif [[ "$pkg" == *-git ]] && [[ -n "$check_repo" ]]; then
|
||||||
|
# For -git packages, check if we need to rebuild based on commit
|
||||||
local latest_commit=$(git ls-remote "https://github.com/${check_repo}.git" HEAD 2>/dev/null | cut -f1 | head -c 7)
|
local latest_commit=$(git ls-remote "https://github.com/${check_repo}.git" HEAD 2>/dev/null | cut -f1 | head -c 7)
|
||||||
|
|
||||||
if [[ -n "$latest_commit" ]]; then
|
if [[ -n "$latest_commit" ]]; then
|
||||||
@@ -89,17 +75,8 @@ build_github_package() {
|
|||||||
|
|
||||||
if [[ "$local_commit" == "$latest_commit" ]]; then
|
if [[ "$local_commit" == "$latest_commit" ]]; then
|
||||||
echo " ✓ Up to date: commit $latest_commit - Skipping"
|
echo " ✓ Up to date: commit $latest_commit - Skipping"
|
||||||
SKIPPED_PACKAGES="$SKIPPED_PACKAGES $github_repo"
|
SKIPPED_PACKAGES="$SKIPPED_PACKAGES $pkg"
|
||||||
|
should_build=false
|
||||||
# If install option is set, install the existing package for dependencies
|
|
||||||
if [[ "$opts" == *"install"* ]]; then
|
|
||||||
echo " Installing existing package for dependencies..."
|
|
||||||
local latest_pkg=$(ls -t $OUTPUT_DIR/${pkg}-*.pkg.tar.* 2>/dev/null | grep -v '\.sig$' | head -1)
|
|
||||||
if [[ -f "$latest_pkg" ]]; then
|
|
||||||
sudo pacman -U --noconfirm --needed "$latest_pkg" 2>/dev/null || true
|
|
||||||
fi
|
|
||||||
fi
|
|
||||||
return 0
|
|
||||||
else
|
else
|
||||||
echo " Update available: $local_commit -> $latest_commit"
|
echo " Update available: $local_commit -> $latest_commit"
|
||||||
fi
|
fi
|
||||||
@@ -107,47 +84,42 @@ build_github_package() {
|
|||||||
echo " New package (commit: $latest_commit)"
|
echo " New package (commit: $latest_commit)"
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
else
|
elif [[ ! "$pkg" == *-git ]]; then
|
||||||
echo " Note: Non-git GitHub package, will check PKGBUILD version"
|
# For non-git packages, check PKGBUILD version
|
||||||
fi
|
local pkgbuild_version=$(bash -c 'source PKGBUILD; echo "${pkgver}-${pkgrel}"' 2>/dev/null)
|
||||||
|
|
||||||
# Fresh clone for building
|
if [[ -n "$pkgbuild_version" ]]; then
|
||||||
cd /src
|
local local_version=$(get_local_version "$pkg")
|
||||||
rm -rf "$pkg"
|
|
||||||
|
|
||||||
git clone "https://github.com/${github_repo}.git" "$pkg" || {
|
if [[ "$local_version" == "$pkgbuild_version" ]]; then
|
||||||
echo " ❌ Failed to clone $github_repo"
|
echo " ✓ Up to date: $local_version - Skipping"
|
||||||
FAILED_PACKAGES="$FAILED_PACKAGES $github_repo"
|
SKIPPED_PACKAGES="$SKIPPED_PACKAGES $pkg"
|
||||||
return 1
|
should_build=false
|
||||||
}
|
elif [[ -n "$local_version" ]]; then
|
||||||
|
echo " Update available: $local_version -> $pkgbuild_version"
|
||||||
cd "$pkg"
|
else
|
||||||
|
echo " New package (version: $pkgbuild_version)"
|
||||||
# Check if PKGBUILD exists
|
fi
|
||||||
if [[ ! -f "PKGBUILD" ]]; then
|
|
||||||
echo " ❌ No PKGBUILD found in repository"
|
|
||||||
FAILED_PACKAGES="$FAILED_PACKAGES $github_repo"
|
|
||||||
cd /src
|
|
||||||
return 1
|
|
||||||
fi
|
|
||||||
|
|
||||||
# For always-build packages, inject timestamp into pkgver to ensure unique filename
|
|
||||||
if [[ "$opts" == *"always-build"* ]]; then
|
|
||||||
# Get current date/time as version suffix
|
|
||||||
local timestamp=$(date +%Y%m%d.%H%M%S)
|
|
||||||
echo " Injecting timestamp: $timestamp"
|
|
||||||
|
|
||||||
# Modify PKGBUILD to append timestamp to pkgver
|
|
||||||
if grep -q '^pkgver=' PKGBUILD; then
|
|
||||||
# Get current pkgver and append timestamp
|
|
||||||
local current_pkgver=$(grep '^pkgver=' PKGBUILD | cut -d'=' -f2 | tr -d "'\"")
|
|
||||||
sed -i "s/^pkgver=.*/pkgver=${current_pkgver}.${timestamp}/" PKGBUILD
|
|
||||||
echo " Modified pkgver to: ${current_pkgver}.${timestamp}"
|
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# If package is up to date but has install flag, install it for dependencies
|
||||||
|
if [[ "$should_build" == false ]] && [[ "$opts" == *"install"* ]]; then
|
||||||
|
echo " Installing existing package for dependencies..."
|
||||||
|
local latest_pkg=$(ls -t $OUTPUT_DIR/${pkg}-*.pkg.tar.* 2>/dev/null | grep -v '\.sig$' | head -1)
|
||||||
|
if [[ -f "$latest_pkg" ]]; then
|
||||||
|
sudo pacman -U --noconfirm --needed "$latest_pkg" 2>/dev/null || true
|
||||||
|
fi
|
||||||
|
return 0
|
||||||
|
fi
|
||||||
|
|
||||||
|
# Skip building if not needed
|
||||||
|
if [[ "$should_build" == false ]]; then
|
||||||
|
return 0
|
||||||
|
fi
|
||||||
|
|
||||||
# Build package with signing
|
# Build package with signing
|
||||||
MAKEPKG_FLAGS="-sc --noconfirm"
|
MAKEPKG_FLAGS="-scf --noconfirm"
|
||||||
|
|
||||||
# Only add sign flag if we have a GPG key configured
|
# Only add sign flag if we have a GPG key configured
|
||||||
if grep -q "^GPGKEY=" ~/.makepkg.conf 2>/dev/null; then
|
if grep -q "^GPGKEY=" ~/.makepkg.conf 2>/dev/null; then
|
||||||
@@ -176,16 +148,109 @@ build_github_package() {
|
|||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
echo " ✓ Successfully built $github_repo"
|
echo " ✓ Successfully built $pkg"
|
||||||
SUCCESSFUL_PACKAGES="$SUCCESSFUL_PACKAGES $github_repo"
|
SUCCESSFUL_PACKAGES="$SUCCESSFUL_PACKAGES $pkg"
|
||||||
|
return 0
|
||||||
else
|
else
|
||||||
echo " ❌ Failed to build $github_repo"
|
echo " ❌ Failed to build $pkg"
|
||||||
|
FAILED_PACKAGES="$FAILED_PACKAGES $pkg"
|
||||||
|
return 1
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
|
# Prepare and build a local PKGBUILD package
|
||||||
|
build_local_package() {
|
||||||
|
local pkg="$1"
|
||||||
|
local opts="$2"
|
||||||
|
|
||||||
|
# Check if package exists locally
|
||||||
|
if [[ ! -d "/pkgbuilds/$pkg" ]] || [[ ! -f "/pkgbuilds/$pkg/PKGBUILD" ]]; then
|
||||||
|
return 1 # Not a local package
|
||||||
|
fi
|
||||||
|
|
||||||
|
echo ""
|
||||||
|
echo " -> Processing local: $pkg..."
|
||||||
|
echo " Source: /pkgbuilds/$pkg"
|
||||||
|
|
||||||
|
# Check for source repo override for -git packages
|
||||||
|
local check_repo=""
|
||||||
|
if [[ "$opts" =~ source:([^ ]+) ]]; then
|
||||||
|
check_repo="${BASH_REMATCH[1]}"
|
||||||
|
echo " Update check repository: $check_repo"
|
||||||
|
fi
|
||||||
|
|
||||||
|
# Copy to build directory
|
||||||
|
cd /src
|
||||||
|
rm -rf "$pkg"
|
||||||
|
cp -r "/pkgbuilds/$pkg" "$pkg"
|
||||||
|
|
||||||
|
# Build the package
|
||||||
|
build_package "$pkg" "$opts" "$check_repo"
|
||||||
|
local result=$?
|
||||||
|
|
||||||
|
cd /src
|
||||||
|
return $result
|
||||||
|
}
|
||||||
|
|
||||||
|
# Build a GitHub package
|
||||||
|
build_github_package() {
|
||||||
|
local github_repo="$1"
|
||||||
|
local opts="$2"
|
||||||
|
|
||||||
|
echo ""
|
||||||
|
echo " -> Processing GitHub: $github_repo..."
|
||||||
|
|
||||||
|
# Extract owner and repo name
|
||||||
|
local owner=$(echo "$github_repo" | cut -d'/' -f1)
|
||||||
|
local repo=$(echo "$github_repo" | cut -d'/' -f2)
|
||||||
|
|
||||||
|
if [[ -z "$owner" ]] || [[ -z "$repo" ]]; then
|
||||||
|
echo " ❌ Invalid GitHub format. Use: owner/repo"
|
||||||
|
FAILED_PACKAGES="$FAILED_PACKAGES $github_repo"
|
||||||
|
return 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
# Use repo name as package name for local tracking
|
||||||
|
local pkg="$repo"
|
||||||
|
|
||||||
|
echo " GitHub repository: https://github.com/$github_repo"
|
||||||
|
|
||||||
|
# Check for source repo override for -git packages
|
||||||
|
local check_repo=""
|
||||||
|
if [[ "$opts" =~ source:([^ ]+) ]]; then
|
||||||
|
check_repo="${BASH_REMATCH[1]}"
|
||||||
|
echo " Update check repository: $check_repo"
|
||||||
|
elif [[ "$pkg" == *-git ]]; then
|
||||||
|
# Default to the GitHub repo for checking updates
|
||||||
|
check_repo="$github_repo"
|
||||||
|
fi
|
||||||
|
|
||||||
|
# Fresh clone for building
|
||||||
|
cd /src
|
||||||
|
rm -rf "$pkg"
|
||||||
|
|
||||||
|
git clone "https://github.com/${github_repo}.git" "$pkg" || {
|
||||||
|
echo " ❌ Failed to clone $github_repo"
|
||||||
|
FAILED_PACKAGES="$FAILED_PACKAGES $github_repo"
|
||||||
|
return 1
|
||||||
|
}
|
||||||
|
|
||||||
|
cd "$pkg"
|
||||||
|
|
||||||
|
# Check if PKGBUILD exists
|
||||||
|
if [[ ! -f "PKGBUILD" ]]; then
|
||||||
|
echo " ❌ No PKGBUILD found in repository"
|
||||||
FAILED_PACKAGES="$FAILED_PACKAGES $github_repo"
|
FAILED_PACKAGES="$FAILED_PACKAGES $github_repo"
|
||||||
cd /src
|
cd /src
|
||||||
return 1
|
return 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# Build the package using common logic
|
||||||
|
build_package "$pkg" "$opts" "$check_repo"
|
||||||
|
local result=$?
|
||||||
|
|
||||||
cd /src
|
cd /src
|
||||||
|
return $result
|
||||||
}
|
}
|
||||||
|
|
||||||
# Build an AUR package
|
# Build an AUR package
|
||||||
@@ -214,7 +279,7 @@ build_aur_package() {
|
|||||||
echo " Using package base: $pkg_base"
|
echo " Using package base: $pkg_base"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Check if we need to build
|
# Check if we need to build (quick check before cloning)
|
||||||
local local_version=$(get_local_version "$pkg")
|
local local_version=$(get_local_version "$pkg")
|
||||||
|
|
||||||
if [[ "$local_version" == "$aur_version" ]]; then
|
if [[ "$local_version" == "$aur_version" ]]; then
|
||||||
@@ -224,15 +289,11 @@ build_aur_package() {
|
|||||||
# If install option is set, install the existing package for dependencies
|
# If install option is set, install the existing package for dependencies
|
||||||
if [[ "$opts" == *"install"* ]]; then
|
if [[ "$opts" == *"install"* ]]; then
|
||||||
echo " Installing existing package for dependencies..."
|
echo " Installing existing package for dependencies..."
|
||||||
# Find the main package file in output directory (match package-version pattern, not debug)
|
|
||||||
local latest_pkg=$(ls -t $OUTPUT_DIR/${pkg}-[0-9]*.pkg.tar.* 2>/dev/null | grep -v '\.sig$' | head -1)
|
local latest_pkg=$(ls -t $OUTPUT_DIR/${pkg}-[0-9]*.pkg.tar.* 2>/dev/null | grep -v '\.sig$' | head -1)
|
||||||
if [[ -f "$latest_pkg" ]]; then
|
if [[ -f "$latest_pkg" ]]; then
|
||||||
sudo pacman -U --noconfirm --needed "$latest_pkg" 2>/dev/null || true
|
sudo pacman -U --noconfirm --needed "$latest_pkg" 2>/dev/null || true
|
||||||
else
|
|
||||||
echo " Warning: Package file not found in /output"
|
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
return 0
|
return 0
|
||||||
elif [[ -n "$local_version" ]]; then
|
elif [[ -n "$local_version" ]]; then
|
||||||
echo " Update available: $local_version -> $aur_version"
|
echo " Update available: $local_version -> $aur_version"
|
||||||
@@ -240,7 +301,7 @@ build_aur_package() {
|
|||||||
echo " New package (AUR: $aur_version)"
|
echo " New package (AUR: $aur_version)"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Always fresh clone when building
|
# Clone from AUR
|
||||||
cd /src
|
cd /src
|
||||||
rm -rf "$pkg"
|
rm -rf "$pkg"
|
||||||
|
|
||||||
@@ -250,49 +311,13 @@ build_aur_package() {
|
|||||||
return 1
|
return 1
|
||||||
}
|
}
|
||||||
|
|
||||||
cd "$pkg"
|
# Build the package using common logic
|
||||||
|
# No check_repo for AUR packages - version checking is done above
|
||||||
# Build package with signing
|
build_package "$pkg" "$opts" ""
|
||||||
MAKEPKG_FLAGS="-sc --noconfirm"
|
local result=$?
|
||||||
|
|
||||||
# Only add sign flag if we have a GPG key configured
|
|
||||||
if grep -q "^GPGKEY=" ~/.makepkg.conf 2>/dev/null; then
|
|
||||||
GPG_KEY=$(grep "^GPGKEY=" ~/.makepkg.conf | cut -d'"' -f2)
|
|
||||||
echo " Using GPG key: $GPG_KEY"
|
|
||||||
# We already tested signing in import-gpg-keys.sh, just add the flags
|
|
||||||
MAKEPKG_FLAGS="$MAKEPKG_FLAGS --sign --key $GPG_KEY"
|
|
||||||
else
|
|
||||||
echo " No GPG key configured in makepkg.conf"
|
|
||||||
fi
|
|
||||||
|
|
||||||
# Check for skip-pgp in options
|
|
||||||
if [[ "$opts" == *"skip-pgp"* ]]; then
|
|
||||||
MAKEPKG_FLAGS="$MAKEPKG_FLAGS --skippgpcheck"
|
|
||||||
echo " (skipping PGP verification)"
|
|
||||||
fi
|
|
||||||
|
|
||||||
if makepkg $MAKEPKG_FLAGS; then
|
|
||||||
# Copy to output (including signature files)
|
|
||||||
for pkg_file in *.pkg.tar.*; do
|
|
||||||
if [[ -f "$pkg_file" ]]; then
|
|
||||||
cp "$pkg_file" $OUTPUT_DIR/
|
|
||||||
# Check for install option to make package available for dependencies
|
|
||||||
if [[ "$opts" == *"install"* ]] && [[ "$pkg_file" =~ ^${pkg}-[0-9].*\.pkg\.tar\..* ]] && [[ "$pkg_file" != *.sig ]]; then
|
|
||||||
echo " Installing locally for dependencies..."
|
|
||||||
sudo pacman -U --noconfirm --needed "$pkg_file" 2>/dev/null || true
|
|
||||||
fi
|
|
||||||
fi
|
|
||||||
done
|
|
||||||
echo " ✓ Successfully built $pkg"
|
|
||||||
SUCCESSFUL_PACKAGES="$SUCCESSFUL_PACKAGES $pkg"
|
|
||||||
else
|
|
||||||
echo " ❌ Failed to build $pkg"
|
|
||||||
FAILED_PACKAGES="$FAILED_PACKAGES $pkg"
|
|
||||||
cd /src
|
|
||||||
return 1
|
|
||||||
fi
|
|
||||||
|
|
||||||
cd /src
|
cd /src
|
||||||
|
return $result
|
||||||
}
|
}
|
||||||
|
|
||||||
# Main execution
|
# Main execution
|
||||||
@@ -312,6 +337,17 @@ if [[ -f /build/packages/omarchy-aur.packages ]]; then
|
|||||||
package=$(echo "$line" | awk '{print $1}')
|
package=$(echo "$line" | awk '{print $1}')
|
||||||
options=$(echo "$line" | awk '{$1=""; print $0}' | xargs)
|
options=$(echo "$line" | awk '{$1=""; print $0}' | xargs)
|
||||||
|
|
||||||
|
# Check build source in priority order:
|
||||||
|
# 1. Local PKGBUILD in /pkgbuilds/
|
||||||
|
# 2. GitHub repository (contains /)
|
||||||
|
# 3. AUR package
|
||||||
|
|
||||||
|
# Try local package first
|
||||||
|
if build_local_package "$package" "$options"; then
|
||||||
|
# Package was handled locally (either built, skipped, or failed)
|
||||||
|
continue
|
||||||
|
fi
|
||||||
|
|
||||||
# Check if this is a GitHub package (contains /)
|
# Check if this is a GitHub package (contains /)
|
||||||
if [[ "$package" == *"/"* ]]; then
|
if [[ "$package" == *"/"* ]]; then
|
||||||
# GitHub package format: owner/repo
|
# GitHub package format: owner/repo
|
||||||
|
|||||||
@@ -1,17 +1,31 @@
|
|||||||
# Omarchy Package List (AUR & GitHub)
|
# Omarchy Package List (AUR, GitHub, and Local)
|
||||||
# Supports both AUR packages and GitHub repositories
|
# Supports AUR packages, GitHub repositories, and local PKGBUILDs
|
||||||
|
#
|
||||||
|
# Build source priority:
|
||||||
|
# 1. Local: Checks /pkgbuilds/<packagename>/ first
|
||||||
|
# 2. GitHub: If contains "/", fetches from GitHub
|
||||||
|
# 3. AUR: Otherwise, fetches from AUR
|
||||||
|
#
|
||||||
# Formats:
|
# Formats:
|
||||||
# - AUR: packagename [options]
|
# - Local: packagename [options] (if exists in /pkgbuilds/)
|
||||||
# - GitHub: owner/repo [options]
|
# - GitHub: owner/repo [options]
|
||||||
|
# - AUR: packagename [options]
|
||||||
|
#
|
||||||
# Options:
|
# Options:
|
||||||
# - skip-pgp: Skip PGP signature verification
|
# - skip-pgp: Skip PGP signature verification
|
||||||
# - install: Install package in container (for dependencies)
|
# - install: Install package in container (for dependencies)
|
||||||
# - always-build: Always build package with timestamp version (unique filename)
|
# - always-build: Always build package with timestamp version (unique filename)
|
||||||
# - source:owner/repo: For -git packages, specify the actual source repo to check
|
# - source:owner/repo: For -git packages, specify the actual source repo to check for updates
|
||||||
|
#
|
||||||
|
# Examples:
|
||||||
|
# asdcontrol-git source:nikosdion/asdcontrol # Uses local PKGBUILD, checks nikosdion/asdcontrol for updates
|
||||||
|
# omacom-io/some-package # Fetches from GitHub
|
||||||
|
# yay # Fetches from AUR
|
||||||
|
|
||||||
#Core Install
|
#Core Install
|
||||||
1password-beta
|
1password-beta
|
||||||
1password-cli
|
1password-cli
|
||||||
|
asdcontrol
|
||||||
elephant install
|
elephant install
|
||||||
elephant-archlinuxpkgs
|
elephant-archlinuxpkgs
|
||||||
elephant-bluetooth
|
elephant-bluetooth
|
||||||
@@ -30,9 +44,9 @@ limine-mkinitcpio-hook
|
|||||||
limine-snapper-sync
|
limine-snapper-sync
|
||||||
localsend-bin
|
localsend-bin
|
||||||
macbook12-spi-driver-dkms
|
macbook12-spi-driver-dkms
|
||||||
omacom-io/asdcontrol-git source:nikosdion/asdcontrol
|
|
||||||
omacom-io/omarchy-lazyvim always-build
|
|
||||||
omarchy-chromium-bin
|
omarchy-chromium-bin
|
||||||
|
omarchy-lazyvim always-build
|
||||||
|
omarchy-wl-screenrec
|
||||||
pinta
|
pinta
|
||||||
python-terminaltexteffects
|
python-terminaltexteffects
|
||||||
spotify
|
spotify
|
||||||
@@ -41,8 +55,6 @@ typora
|
|||||||
tzupdate
|
tzupdate
|
||||||
ufw-docker
|
ufw-docker
|
||||||
walker
|
walker
|
||||||
# walker-bin # Not maintained any longer
|
|
||||||
wl-screenrec
|
|
||||||
yaru-icon-theme
|
yaru-icon-theme
|
||||||
yay
|
yay
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user