forked from marfrit/marfrit-packages
Add claude-his-agent package (arch=any + debian Architecture: all)
- arch/claude-his-agent/PKGBUILD: fetches v0.1.0 tarball from git.reauktion.de/marfrit/claude-his-agent, installs agent+skill+helper to /usr/share/claude-agents/, /usr/share/claude-skills/his/, /usr/bin/ - debian/claude-his-agent/: control+changelog+copyright + build-deb.sh mirroring the lmcp-debian pattern (dpkg-deb, reproducible mtimes) - .gitea/workflows/build.yml: two new serialized jobs (claude-his-any + claude-his-debian) after lmcp-debian; same publish flow as lmcp.
This commit is contained in:
+57
@@ -0,0 +1,57 @@
|
||||
#!/bin/bash
|
||||
# Build claude-his-agent_<ver>_all.deb from this directory using dpkg-deb.
|
||||
# Mirrors the lmcp/build-deb.sh pattern.
|
||||
set -euo pipefail
|
||||
|
||||
PKGVER=0.1.0
|
||||
PKGREL=1
|
||||
HIS_TARBALL_SHA256=d1e953632c3cf52ef9cd6ab51d2878808f99fb031931bbc99f6a554501dfc14e
|
||||
HERE=$(dirname "$(readlink -f "$0")")
|
||||
|
||||
# Reproducible build: pin mtimes + ar member timestamps to a fixed epoch
|
||||
# tied to this release (v0.1.0, 2026-04-17 11:30 UTC).
|
||||
export SOURCE_DATE_EPOCH=1776698400
|
||||
|
||||
work=$(mktemp -d)
|
||||
trap "rm -rf $work" EXIT
|
||||
|
||||
cd "$work"
|
||||
curl -sSLfo his.tar.gz \
|
||||
"https://git.reauktion.de/marfrit/claude-his-agent/archive/v${PKGVER}.tar.gz"
|
||||
echo "$HIS_TARBALL_SHA256 his.tar.gz" | sha256sum -c
|
||||
tar xzf his.tar.gz
|
||||
|
||||
ROOT="$work/pkgroot"
|
||||
mkdir -p "$ROOT/DEBIAN" \
|
||||
"$ROOT/usr/share/claude-agents" \
|
||||
"$ROOT/usr/share/claude-skills/his" \
|
||||
"$ROOT/usr/bin" \
|
||||
"$ROOT/usr/share/doc/claude-his-agent"
|
||||
|
||||
install -m 644 claude-his-agent/agents/his.md "$ROOT/usr/share/claude-agents/his.md"
|
||||
install -m 644 claude-his-agent/skills/his/SKILL.md "$ROOT/usr/share/claude-skills/his/SKILL.md"
|
||||
install -m 755 claude-his-agent/scripts/claude-his-install "$ROOT/usr/bin/claude-his-install"
|
||||
install -m 644 claude-his-agent/README.md "$ROOT/usr/share/doc/claude-his-agent/README.md"
|
||||
install -m 644 "$HERE/debian/copyright" "$ROOT/usr/share/doc/claude-his-agent/copyright"
|
||||
|
||||
# Render control from the source debian/control, filling in version
|
||||
CONTROL_SRC="$HERE/debian/control"
|
||||
{
|
||||
echo "Package: claude-his-agent"
|
||||
echo "Version: ${PKGVER}-${PKGREL}"
|
||||
echo "Architecture: all"
|
||||
echo "Maintainer: Markus Fritsche <mfritsche@reauktion.de>"
|
||||
echo "Homepage: https://git.reauktion.de/marfrit/claude-his-agent"
|
||||
echo "Section: utils"
|
||||
echo "Priority: optional"
|
||||
echo "Depends: bash"
|
||||
# Trailing description from the source control (indented multi-line block)
|
||||
awk '/^Description:/{p=1} p' "$CONTROL_SRC"
|
||||
} > "$ROOT/DEBIAN/control"
|
||||
|
||||
# Normalize mtimes for reproducibility
|
||||
find "$ROOT" -exec touch -d "@$SOURCE_DATE_EPOCH" {} +
|
||||
|
||||
OUT_DEB="$HERE/claude-his-agent_${PKGVER}-${PKGREL}_all.deb"
|
||||
dpkg-deb --build --root-owner-group "$ROOT" "$OUT_DEB"
|
||||
ls -la "$OUT_DEB"
|
||||
Reference in New Issue
Block a user