Skip to content

Instantly share code, notes, and snippets.

@attakei
Created December 18, 2021 08:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save attakei/48f2ab7d6a3ccd0a3720b6f9e4dbafae to your computer and use it in GitHub Desktop.
Save attakei/48f2ab7d6a3ccd0a3720b6f9e4dbafae to your computer and use it in GitHub Desktop.
Install gh(GitHub CLI) fy pacman likely AUR
# Maintainer: Your Name <youremail@domain.com>
pkgname=gh-bin
pkgver=2.3.0
pkgrel=1
epoch=
pkgdesc="GitHub’s official command line tool (private AUR for install from binary)"
arch=('x86_64')
url="https://github.com/cli/cli/tree/v2.3.0"
license=('MIT')
groups=()
depends=()
makedepends=()
checkdepends=()
optdepends=()
provides=()
conflicts=()
replaces=()
backup=()
options=()
install=
changelog=
source=("https://github.com/cli/cli/releases/download/v${pkgver}/${pkgname/-bin/}_${pkgver}_linux_amd64.tar.gz")
noextract=()
md5sums=('4953e08afae0ccfc7985dc0f6a40c107')
validpgpkeys=()
package() {
name=${pkgname/-bin/}_${pkgver}_linux_amd64
tar xf ${name}.tar.gz
install -Dm644 "${name}/LICENSE" "${pkgdir}/usr/share/licenses/gh-bin/LICENSE"
install -Dm755 "${name}/bin/gh" "${pkgdir}/usr/bin/${pkgname/-bin/}"
}
  1. Make directory temporary packaging
  2. Download PKGBUILD into this directory
  3. Run cd YOUR_DIRECTORY and makepkg
  4. RUn pacman -U gh-bin-PKGVER-PKGREL-x86_64.pkg.tar.zst
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment