- PKGBUILD: builds converge package, uses pre-built binary from build/converge when available (from scripts/build), falls back to stack build from source. Installs binary, systemd user service, example config, and README. - scripts/build: added final step to run makepkg -f on the host (conditional, skipped if makepkg not found). Produces .pkg.tar.zst alongside the binary. - scripts/makepkg: convenience wrapper for standalone makepkg runs.
This commit is contained in:
@@ -20,3 +20,15 @@ echo "Compressing with UPX..."
|
||||
'
|
||||
|
||||
echo "Done: $(ls -lh build/converge | awk '{print $5}')"
|
||||
|
||||
# Build Arch Linux package (if makepkg is available)
|
||||
if command -v makepkg &>/dev/null; then
|
||||
echo "Building Arch package with makepkg..."
|
||||
if makepkg -f 2>&1; then
|
||||
echo "Package: $(ls -1 converge-*.pkg.tar.zst 2>/dev/null)"
|
||||
else
|
||||
echo "WARNING: makepkg failed (see above)" >&2
|
||||
fi
|
||||
else
|
||||
echo "Skipping package build (makepkg not found)"
|
||||
fi
|
||||
|
||||
Executable
+13
@@ -0,0 +1,13 @@
|
||||
#!/usr/bin/env bash
|
||||
# Build an Arch Linux package for converge using makepkg.
|
||||
#
|
||||
# Usage:
|
||||
# ./scripts/makepkg # Build the package (no install)
|
||||
# ./scripts/makepkg -i # Build and install
|
||||
# ./scripts/makepkg -s # Build and install missing deps
|
||||
#
|
||||
# The resulting .pkg.tar.zst will be placed in the project root.
|
||||
set -euo pipefail
|
||||
cd "$(dirname "${BASH_SOURCE[0]}")/.."
|
||||
|
||||
makepkg -f "$@"
|
||||
Reference in New Issue
Block a user