makedeb


gh-bin 2.17.0-1


GitHub’s official command line tool.

Viewing /PKGBUILD.

View raw.

Click here to go back to the Git tree for gh-bin.

# Maintainer: hiddeninthesand <hiddeninthesand at pm dot me>

pkgname="gh-bin"
provides=('gh')
pkgver='2.17.0'
pkgrel='1'
pkgdesc="GitHub’s official command line tool."
arch=('x86_64')
depends=('git')
license=('MIT')
url="https://github.com/cli/cli"
conflicts=("gh-git" "gh")

source=("${url}/releases/download/v${pkgver}/gh_${pkgver}_linux_amd64.deb")
b2sums=('dc269e08bf3dfdd10ab09408bf2863e3e22f19949bcbe046fed6c2c3bac990c3755dc4e6af9e145fe11e4b5dbe1a76840125ca1221d74ec9630f2757b379ee5b')

package() {
    # Extract data.tar.xz to pkgdir
    msg2 "Extracting data.tar.gz..."
    tar -xf 'data.tar.gz' -C "${pkgdir}"
}