Own ARM-compatible recipes and sync upstream directly
This commit is contained in:
21 files changed
+204
-43
No files matched your search
@@ -1,5 +1,4 @@
|
||||
{
|
||||
"source": "aur",
|
||||
"release_ring": "fast",
|
||||
"upstream_commit": "fc4db00ecaf6c2669422b32c023a16bf6eb4e6c7"
|
||||
"source": "local",
|
||||
"release_ring": "fast"
|
||||
}
|
||||
+34
@@ -0,0 +1,34 @@
|
||||
#!/bin/bash
|
||||
# GitHub Copilot CLI is published to npm. Track npm's stable `latest` tag,
|
||||
# then hash both inputs the PKGBUILD downloads. AUR is deliberately not part
|
||||
# of this update path: Omarchy owns the multi-architecture recipe.
|
||||
set -euo pipefail
|
||||
|
||||
REGISTRY_URL="https://registry.npmjs.org/@github%2Fcopilot"
|
||||
CHANGELOG_BASE="https://raw.githubusercontent.com/github/copilot-cli"
|
||||
|
||||
metadata=$(curl -fsSL "$REGISTRY_URL")
|
||||
version=$(jq -r '."dist-tags".latest // ""' <<<"$metadata")
|
||||
tarball=$(jq -r --arg version "$version" '.versions[$version].dist.tarball // ""' <<<"$metadata")
|
||||
|
||||
if [[ ! $version =~ ^[0-9]+\.[0-9]+\.[0-9]+$ || ! $tarball =~ ^https://registry\.npmjs\.org/ ]]; then
|
||||
echo "npm returned an unusable Copilot release: version='$version' tarball='$tarball'" >&2
|
||||
exit 1
|
||||
fi
|
||||
|
||||
current=$(grep -m1 '^pkgver=' PKGBUILD | cut -d= -f2- | tr -d "\"'")
|
||||
if [[ $(vercmp "$version" "$current") -le 0 ]]; then
|
||||
echo '{}'
|
||||
exit 0
|
||||
fi
|
||||
|
||||
work=$(mktemp -d)
|
||||
trap 'rm -rf "$work"' EXIT
|
||||
curl -fsSL -o "$work/copilot.tgz" "$tarball"
|
||||
curl -fsSL -o "$work/changelog.md" "$CHANGELOG_BASE/v${version}/changelog.md"
|
||||
|
||||
jq -n \
|
||||
--arg pkgver "$version" \
|
||||
--arg package_sum "$(sha256sum "$work/copilot.tgz" | cut -d' ' -f1)" \
|
||||
--arg changelog_sum "$(sha256sum "$work/changelog.md" | cut -d' ' -f1)" \
|
||||
'{pkgver: $pkgver, sha256sums: {any: [$package_sum, $changelog_sum]}}'
|
||||
@@ -14,7 +14,7 @@ pkgdesc="GitHub Copilot CLI brings the power of Copilot coding agent directly to
|
||||
url="https://github.com/github/copilot-cli"
|
||||
_urlraw="https://raw.githubusercontent.com/github/copilot-cli/v${pkgver}"
|
||||
|
||||
arch=("x86_64")
|
||||
arch=("x86_64" "aarch64")
|
||||
|
||||
license=("LicenseRef-GitHub-Copilot")
|
||||
|
||||
@@ -30,8 +30,8 @@ source=("https://registry.npmjs.org/${_npmmodule}/-/copilot-${pkgver}.tgz"
|
||||
"CHANGELOG-${pkgver}.md::${_urlraw}/changelog.md")
|
||||
noextract=("copilot-${pkgver}.tgz")
|
||||
|
||||
b2sums=('41c8306b58a142afe162bad9822b150babb0f3903fe7392aa7106fcb0ffce4483c0a2ebda8bb1d2036199deb52dc83d9a0e9408b8e11f7b0bc2a8f57c6841425'
|
||||
'5d2dfc870356f83b9b890d351b21bc9339100b0bfdce405ee77751e934dbeab0f8656f5eee85119a06aa3b01dcf3c91224ce28c24ff318eb1b13fdb6082037cd')
|
||||
sha256sums=('563cbfe9b873fa52e998376cfea499eb77a5a300fb6db48fcc85f8eb297da4b9'
|
||||
'653b32793f5e5d29952c0e301649473c8097afc15270aa488efa08aa9399afcf')
|
||||
|
||||
# Document: https://wiki.archlinux.org/title/Node.js_package_guidelines
|
||||
package() {
|
||||
@@ -124,4 +124,3 @@ package() {
|
||||
ln -sf "/usr/lib/node_modules/${_npmmodule}/LICENSE.md" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
|
||||
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user