Move the means package to orbit-packages
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
47a80fad04
commit
6d35f207fd
2 files changed
+2
-31
No files matched your search
@@ -1,31 +0,0 @@
|
||||
#!/bin/sh
|
||||
# Stage the upstream means release as an Orbit package. Print the staging path on stdout.
|
||||
set -eu
|
||||
|
||||
version=0.6.0
|
||||
sha256=0cf864115f116d5c6a75f8a2f2679d0a5854261a84d10d03e161481973de9669
|
||||
|
||||
cd "$(dirname "$0")/.."
|
||||
mkdir -p _build
|
||||
package_dir=$(mktemp -d "$PWD/_build/means-package.XXXXXX")
|
||||
archive="$package_dir/means.tar.gz"
|
||||
curl -fsSL -o "$archive" \
|
||||
"https://github.com/hmans/means/releases/download/v$version/means_${version}_linux_amd64.tar.gz"
|
||||
printf '%s %s\n' "$sha256" "$archive" | sha256sum -c - >&2
|
||||
|
||||
mkdir -p "$package_dir/files/bin" "$package_dir/files/share/doc/means"
|
||||
tar -xzf "$archive" -C "$package_dir" means LICENSE README.md
|
||||
install -m 755 "$package_dir/means" "$package_dir/files/bin/means"
|
||||
install -m 644 "$package_dir/LICENSE" "$package_dir/README.md" "$package_dir/files/share/doc/means/"
|
||||
rm "$archive" "$package_dir/means" "$package_dir/LICENSE" "$package_dir/README.md"
|
||||
cat > "$package_dir/orbit.json" <<EOF
|
||||
{
|
||||
"name": "means",
|
||||
"version": "$version",
|
||||
"description": "Markdown document collections with schemas, for issues, notes and agent memory",
|
||||
"documentation": "https://github.com/hmans/means",
|
||||
"bin": ["bin/means"],
|
||||
"depends": {}
|
||||
}
|
||||
EOF
|
||||
printf '%s\n' "$package_dir"
|
||||
Reference in new issue
Block a user