- Make directory temporary packaging
- Download
PKGBUILD
into this directory - Run
cd YOUR_DIRECTORY
andmakepkg
- RUn
pacman -U gh-bin-PKGVER-PKGREL-x86_64.pkg.tar.zst
Created
December 18, 2021 08:28
-
-
Save attakei/48f2ab7d6a3ccd0a3720b6f9e4dbafae to your computer and use it in GitHub Desktop.
Install gh(GitHub CLI) fy pacman likely AUR
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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/}" | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment