-
Notifications
You must be signed in to change notification settings - Fork 15
Expand file tree
/
Copy pathstatic.stable.yaml
More file actions
52 lines (51 loc) · 1.18 KB
/
static.stable.yaml
File metadata and controls
52 lines (51 loc) · 1.18 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
#!/SBUILD
_disabled: false
pkg: "gh"
pkg_id: "github.cli"
pkgver: "2.88.0"
pkg_type: "static"
ghcr_pkg: "github/cli"
category:
- "ConsoleOnly"
- "Development"
- "RevisionControl"
description: "GitHub CLI tool"
homepage:
- "https://cli.github.com"
maintainer:
- "QaidVoid (contact@qaidvoid.dev)"
license:
- "MIT"
build_asset:
- url: "https://github.com/cli/cli/releases/download/v${PKGVER}/gh_${PKGVER}_linux_${ARCH_ALT}.tar.gz"
out: "gh.tar.gz"
note:
- "Official binary from https://github.com/cli/cli"
- "[PORTABLE] (Portable Static Binary)"
- "[NO_DESKTOP_INTEGRATION]"
provides:
- "gh"
repology:
- "github-cli"
src_url:
- "https://github.com/cli/cli"
tag:
- "github"
- "git"
- "cli"
snapshots:
- "2.87.3"
- "2.87.2"
- "2.87.0"
x_exec:
host:
- "x86_64-linux"
- "aarch64-linux"
shell: "sh"
pkgver: |
curl -qfsSL "https://api.github.com/repos/cli/cli/releases/latest" | jq -r '.tag_name' | tr -d 'v'
run: |
tar -xf "gh.tar.gz" -C "$SBUILD_TMPDIR/"
mv "$SBUILD_TMPDIR/gh_${PKGVER}_linux_${ARCH_ALT}/bin/gh" "$SBUILD_OUTDIR/$PKG"
mv "$SBUILD_TMPDIR/gh_${PKGVER}_linux_${ARCH_ALT}/LICENSE" "$SBUILD_OUTDIR/LICENSE"
rm -rf "gh.tar.gz"