Created
February 4, 2020 18:53
-
-
Save kelsos/212ecbb73f155ef756f03767425d8991 to your computer and use it in GitHub Desktop.
GH CLI PKGBUILD
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
pkgname=gh-cli | |
pkgver=0.5.4 | |
pkgrel=1 | |
pkgdesc="the GitHub CLI" | |
arch=('x86_64') | |
url="https://github.com/cli/cli" | |
license=('MIT') | |
depends=() | |
makedepends=() | |
provides=("${pkgname%-bin}" "gh") | |
source=("${pkgname}-${pkgver}.tar.gz::https://github.com/cli/cli/releases/download/v0.5.4/gh_${pkgver}_linux_amd64.tar.gz") | |
sha256sums=('b6725efd3b4ce8ea0d882c0b7519bd6122e950772b85528e8b84771a22880249') | |
package() { | |
install -dm755 "${pkgdir}/usr/bin" | |
install -dm755 "${pkgdir}/opt/${_pkgname}" | |
cp "${srcdir}/gh_${pkgver}_linux_amd64/bin/gh" "${pkgdir}/opt/${pkgname}/" | |
ln -s /opt/${pkgname}/gh "${pkgdir}"/usr/bin/gh | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment