Github messages for voidlinux
 help / color / mirror / Atom feed
From: mchlumsky <mchlumsky@users.noreply.github.com>
To: ml@inbox.vuxu.org
Subject: [PR PATCH] New package: flux-2.0.1
Date: Mon, 24 Jul 2023 04:23:36 +0200	[thread overview]
Message-ID: <gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-45214@inbox.vuxu.org> (raw)

[-- Attachment #1: Type: text/plain, Size: 661 bytes --]

There is a new pull request by mchlumsky against master on the void-packages repository

https://github.com/mchlumsky/void-packages add-flux
https://github.com/void-linux/void-packages/pull/45214

New package: flux-2.0.1
#### Testing the changes
- I tested the changes in this PR: **YES**

#### New package
- This new package conforms to the [package requirements](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#package-requirements): **YES**

#### Local build testing
- I built this PR locally for my native architecture, x86_64-glibc


A patch file from https://github.com/void-linux/void-packages/pull/45214.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-add-flux-45214.patch --]
[-- Type: text/x-diff, Size: 1969 bytes --]

From 331adde492dbd5619742d049ecfb6a79a8848b2e Mon Sep 17 00:00:00 2001
From: Martin Chlumsky <martin.chlumsky@gmail.com>
Date: Sun, 23 Jul 2023 22:14:41 -0400
Subject: [PATCH] New package: flux-2.0.1

---
 srcpkgs/flux/template | 34 ++++++++++++++++++++++++++++++++++
 1 file changed, 34 insertions(+)
 create mode 100644 srcpkgs/flux/template

diff --git a/srcpkgs/flux/template b/srcpkgs/flux/template
new file mode 100644
index 000000000000..3b6893773e80
--- /dev/null
+++ b/srcpkgs/flux/template
@@ -0,0 +1,34 @@
+# Template file for 'flux'
+pkgname=flux
+version=2.0.1
+revision=1
+build_style=go
+build_helper="qemu"
+go_import_path=github.com/fluxcd/flux2/v2
+go_ldflags="-X main.VERSION=${version}"
+go_package="${go_import_path}/cmd/flux"
+hostmakedepends="tar"
+short_desc="Open and extensible continuous delivery solution for Kubernetes"
+maintainer="Martin Chlumsky <martin.chlumsky@gmail.com>"
+license="Apache-2.0"
+homepage="https://fluxcd.io"
+distfiles="https://github.com/fluxcd/flux2/archive/refs/tags/v${version}.tar.gz https://github.com/fluxcd/flux2/releases/download/v${version}/manifests.tar.gz"
+checksum="b4c57d94d81eea40ea7180e814d2e6984b8787d296a21b1b662397a9a23d5407 5df034f909448c4d73017d881c25badbe9d8092be51e2a76553417de94234de2"
+skip_extraction="manifests.tar.gz"
+
+pre_build() {
+	# In the github flux repository, manifests are generated through a shell script that calls kustomize which is not
+	# available in Void linux. As a workaround, we use the manifests from the github releases instead.
+	# https://github.com/fluxcd/flux2/blob/44d69d6fc0c353e79c1bad021a4aca135033bce8/manifests/scripts/bundle.sh#L37
+	mkdir cmd/flux/manifests
+	tar xv -f /host/sources/flux-${version}/manifests.tar.gz -C cmd/flux/manifests/
+}
+
+post_install() {
+	flux=$(find $GOPATH/bin -name flux)
+
+	for shell in bash fish zsh; do
+		vtargetrun ${flux} completion ${shell} > completion.${shell}
+		vcompletion completion.${shell} ${shell}
+	done
+}

             reply	other threads:[~2023-07-24  2:23 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-07-24  2:23 mchlumsky [this message]
2023-07-24  2:42 ` [PR PATCH] [Updated] " mchlumsky
2023-07-24 18:44 ` mchlumsky
2023-10-23  1:45 ` github-actions
2023-11-06  1:46 ` [PR PATCH] [Closed]: " github-actions

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-45214@inbox.vuxu.org \
    --to=mchlumsky@users.noreply.github.com \
    --cc=ml@inbox.vuxu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).