Initial upload: hypershift-git r3267.b9f9d94-1

This commit is contained in:
Cedric Girard 2023-02-14 11:48:57 +01:00
parent 7e413fa22f
commit e838f442e8
Signed by: X-dark
GPG Key ID: E7D0E125DB9519E4
2 changed files with 57 additions and 0 deletions

15
hypershift-git/.SRCINFO Normal file
View File

@ -0,0 +1,15 @@
pkgbase = hypershift-git
pkgdesc = Hyperscale OpenShift - clusters with hosted control planes - CLI
pkgver = r3267.b9f9d94
pkgrel = 1
url = https://hypershift-docs.netlify.app/
arch = x86_64
license = Apache
makedepends = go
makedepends = git
provides = hypershift
conflicts = hypershift
source = git+https://github.com/openshift/hypershift.git
sha256sums = SKIP
pkgname = hypershift-git

42
hypershift-git/PKGBUILD Normal file
View File

@ -0,0 +1,42 @@
# Maintainer: Cedric Girard <cgirard [dot] archlinux [at] valinor [dot] fr>
pkgname=hypershift-git
pkgver=r3267.b9f9d94
pkgrel=1
pkgdesc="Hyperscale OpenShift - clusters with hosted control planes - CLI"
arch=('x86_64')
url="https://hypershift-docs.netlify.app/"
license=('Apache')
makedepends=('go' 'git')
provides=('hypershift')
conflicts=('hypershift')
source=("git+https://github.com/openshift/hypershift.git")
sha256sums=('SKIP')
pkgver() {
cd "hypershift"
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short=7 HEAD)"
}
prepare() {
cd "$srcdir"/hypershift
mkdir -p build/
}
build(){
cd "$srcdir"/hypershift
export CGO_CPPFLAGS="${CPPFLAGS}"
export CGO_CFLAGS="${CFLAGS}"
export CGO_CXXFLAGS="${CXXFLAGS}"
export CGO_LDFLAGS="${LDFLAGS}"
export GOFLAGS="-buildmode=pie -trimpath -ldflags=-linkmode=external -mod=readonly -modcacherw"
export GOTMPDIR="${srcdir}"
go build -o build/hypershift .
}
package() {
cd "$srcdir"/hypershift
install -Dm755 build/hypershift "${pkgdir}"/usr/bin/hypershift
}