Skip to content

Commit

Permalink
gh/github-cli: multiple changes
Browse files Browse the repository at this point in the history
- Merge `github-cli` to `gh`, as these two packages are the same
  - `build` from `github-cli` is merged into `beyond` from `gh`
  - Change `PKGSEC` of `github-cli` to `vcs`
  - `github-cli` is now a dummy package with dependency of `gh`
- Update to 2.9.0
  • Loading branch information
CamberLoid committed May 8, 2022
1 parent efc9bdc commit d4a8ac1
Show file tree
Hide file tree
Showing 8 changed files with 17 additions and 26 deletions.
8 changes: 0 additions & 8 deletions extra-utils/github-cli/autobuild/defines

This file was deleted.

5 changes: 0 additions & 5 deletions extra-utils/github-cli/spec

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,12 +1,3 @@
abinfo "Building binary..."
make
abinfo "Installing github-cli binary..."
install -Dm755 "$SRCDIR/bin/gh" "$PKGDIR/usr/bin/gh"

abinfo "Generating man pages..."
make manpages
cp -r "$SRCDIR"/share "$PKGDIR"/usr

abinfo "Installing shell completion scripts..."
"$SRCDIR"/bin/gh completion -s bash | install -Dm644 /dev/stdin "$PKGDIR"/usr/share/bash-completion/completions/gh
"$SRCDIR"/bin/gh completion -s zsh | install -Dm644 /dev/stdin "$PKGDIR"/usr/share/zsh/site-functions/_gh
Expand Down
2 changes: 1 addition & 1 deletion extra-vcs/gh/autobuild/defines
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ PKGSEC=vcs
PKGDES="GitHub’s official command line tool"

PKGDEP="git"
BUILDDEP="go"
BUILDDEP="go go-md2man"

ABTYPE=plainmake
MAKE_AFTER="CGO_ENABLED=0"
Expand Down
5 changes: 2 additions & 3 deletions extra-vcs/gh/spec
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
VER=2.1.0
REL=1
VER=2.9.0
SRCS="https://github.com/cli/cli/archive/refs/tags/v$VER.tar.gz"
CHKSUMS="sha256::4B353B121A0F3DDF5046F0A1AE719A0539E0CDDEF27CC78A1B33AD7D1D22C007"
CHKSUMS="sha256::730b600d33afb67d84af4dca1af80cb1fbff79d302ac4f840fc8e9e4c25fceb7"
CHKUPDATE="anitya::id=235195"
2 changes: 2 additions & 0 deletions extra-vcs/github-cli/autobuild/beyond
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
mkdir -pv "$PKGDIR"/usr/share/doc/
ln /usr/share/doc/gh "$PKGDIR"/usr/share/doc/github-cli -s
9 changes: 9 additions & 0 deletions extra-vcs/github-cli/autobuild/defines
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
PKGNAME=github-cli
PKGSEC=vcs
PKGDEP="gh"

PKGDES="(Transitioned to gh) GitHub’s official command line tool"

PKGEPOCH=1
ABTYPE=dummy
ABSPLITDBG=0
3 changes: 3 additions & 0 deletions extra-vcs/github-cli/spec
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
VER=0
DUMMYSRC=1
CHKSUMS="SKIP"

0 comments on commit d4a8ac1

Please sign in to comment.