Skip to content

Build Patterns

m-wells edited this page Jan 30, 2026 · 1 revision

Build Patterns

This section describes the different patterns used for packaging various upstream sources.

Package Targets

Packages declare their distribution targets via marker files:

Marker Behavior
.local Build and publish to GitHub releases
.aur Push PKGBUILD to AUR
(both) Build locally AND push to AUR

Patterns

Smoke Tests

Each package should include a check.sh script for post-build verification:

#!/bin/bash
set -e
PKG_FILE="$1"

sudo pacman -U --noconfirm "$PKG_FILE"

# Verify the package works
if command --version; then
    echo "PASS"
else
    echo "FAIL"
    exit 1
fi

Clone this wiki locally