# Contributor: Leo # Maintainer: Leo pkgname=github-cli pkgver=1.2.1 pkgrel=0 pkgdesc="CLI for dealing with GitHub" options="net chmod-clean" # Need to fetch modules and clean them up url="https://cli.github.com" arch="all !mips !mips64" license="MIT" depends="git" makedepends="go" subpackages=" $pkgname-doc $pkgname-bash-completion $pkgname-zsh-completion $pkgname-fish-completion " source="https://github.com/cli/cli/archive/v$pkgver/github-cli-$pkgver-$pkgver.tar.gz " builddir="$srcdir/cli-$pkgver" build() { CGO_CPPFLAGS="$CPPFLAGS" \ CGO_CFLAGS="$CFLAGS" \ CGO_CXXFLAGS="$CXXFLAGS" \ CGO_LDFLAGS="$LDFLAGS" \ \ make GH_VERSION="v$pkgver" bin/gh manpages bin/gh completion -s bash | install -Dm0644 /dev/stdin \ share/bash-completion/completions/gh bin/gh completion -s zsh | install -Dm0644 /dev/stdin \ share/zsh/site-functions/_gh bin/gh completion -s fish | install -Dm0644 /dev/stdin \ share/fish/completions/gh.fish } check() { go test -v ./... } package() { install -Dm755 bin/gh "$pkgdir"/usr/bin/gh mkdir -p "$pkgdir"/usr cp -r share "$pkgdir"/usr } sha512sums="d3ee852b3a01a1bc529733e8d151d9e44205efea4f6299ad3d34376df1e8947d2c4499b24a0b9c5c1c02b87c85a8b74c6c448ed7bfdfdb4d1dd10fc0f16b5800 github-cli-1.2.1-1.2.1.tar.gz"