mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2026-01-14 13:12:09 +01:00
65 lines
1.8 KiB
Plaintext
65 lines
1.8 KiB
Plaintext
# Contributor: Leo <thinkabit.ukim@gmail.com>
|
|
# Contributor: Celeste <cielesti@protonmail.com>
|
|
# Contributor: Andrei Jiroh Eugenio Halili <ajhalili2006@andreijiroh.xyz>
|
|
# Maintainer: Andrei Jiroh Eugenio Halili <ajhalili2006@andreijiroh.xyz>
|
|
pkgname=github-cli
|
|
pkgver=2.74.1
|
|
pkgrel=1
|
|
pkgdesc="CLI for dealing with GitHub"
|
|
options="net" # Need to fetch modules
|
|
url="https://cli.github.com"
|
|
arch="all"
|
|
license="MIT"
|
|
depends="git"
|
|
makedepends="go"
|
|
checkdepends="openssh-keygen openssh-client"
|
|
subpackages="
|
|
$pkgname-doc
|
|
$pkgname-bash-completion
|
|
$pkgname-fish-completion
|
|
$pkgname-zsh-completion
|
|
"
|
|
source="https://github.com/cli/cli/archive/v$pkgver/github-cli-$pkgver.tar.gz
|
|
no-ignore-goflags.patch
|
|
"
|
|
builddir="$srcdir/cli-$pkgver"
|
|
|
|
export GOCACHE="${GOCACHE:-"$srcdir/go-cache"}"
|
|
export GOTMPDIR="${GOTMPDIR:-"$srcdir"}"
|
|
export GOMODCACHE="${GOMODCACHE:-"$srcdir/go"}"
|
|
|
|
prepare() {
|
|
default_prepare
|
|
|
|
# TODO: These tests invoke the TTY and our container *really* does not like that
|
|
# Copied from https://github.com/archlinux/svntogit-community/blob/packages/github-cli/trunk/PKGBUILD
|
|
rm pkg/cmd/auth/login/login_test.go
|
|
}
|
|
|
|
build() {
|
|
CGO_CPPFLAGS="$CPPFLAGS" \
|
|
CGO_CFLAGS="$CFLAGS" \
|
|
CGO_CXXFLAGS="$CXXFLAGS" \
|
|
CGO_LDFLAGS="$LDFLAGS" \
|
|
make GH_VERSION="v$pkgver" bin/gh manpages completions
|
|
}
|
|
|
|
check() {
|
|
export TZ=Europe/London
|
|
# skip tests that fail in official CI
|
|
export GITHUB_ACTIONS=true
|
|
go test ./...
|
|
}
|
|
|
|
package() {
|
|
install -Dm755 bin/gh "$pkgdir"/usr/bin/gh
|
|
|
|
mkdir -p "$pkgdir"/usr
|
|
cp -r share "$pkgdir"/usr
|
|
}
|
|
|
|
sha512sums="
|
|
44c169c442717072a552a718a9703c7769fd05430541819cfa672e92d347d66d7a4e0a42a187402ff2966bd326e572da192aad9b68e870292857826e812c3f84 github-cli-2.74.1.tar.gz
|
|
57be81e57c0bb5c36e07b6ff2aab661f1a9cd0bbab3ef159c24d59098451858c44fce09d2f5eb86380044568a6acc46ed65b56a87f5a3dc4057d5579e8f420aa no-ignore-goflags.patch
|
|
"
|