[arch-commits] Commit in (flux flux/repos flux/trunk flux/trunk/PKGBUILD)
Christian Rebischke
shibumi at archlinux.org
Mon Jun 21 21:30:55 UTC 2021
Date: Monday, June 21, 2021 @ 21:30:54
Author: shibumi
Revision: 966633
add flux to community
Added:
flux/
flux/repos/
flux/trunk/
flux/trunk/PKGBUILD
----------+
PKGBUILD | 47 +++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 47 insertions(+)
Added: flux/trunk/PKGBUILD
===================================================================
--- flux/trunk/PKGBUILD (rev 0)
+++ flux/trunk/PKGBUILD 2021-06-21 21:30:54 UTC (rev 966633)
@@ -0,0 +1,47 @@
+# Maintainer: Christian Rebischke <chris.rebischke at archlinux.org>
+# Contributor: Aurel Canciu <aurelcanciu at gmail.com>
+# Contributor: Hidde Beydals <hello at hidde.co>
+
+pkgname=flux
+pkgver=0.15.2
+pkgrel=2
+pkgdesc="Open and extensible continuous delivery solution for Kubernetes"
+url="https://fluxcd.io/"
+arch=("x86_64")
+license=("apache")
+depends=("glibc")
+makedepends=('go>=1.16', 'kustomize>=3.0')
+optdepends=('kubectl: for apply actions on the Kubernetes cluster',
+'bash-completion: auto-completion for flux in Bash',
+'zsh-completions: auto-completion for flux in ZSH')
+source=(
+ "${pkgname}-${pkgver}.tar.gz::https://github.com/fluxcd/flux2/archive/v${pkgver}.tar.gz"
+)
+sha512sums=('33390c6ab0feb57d874840a26740bc48b7d7577b35b2928eacec9931cc92ae213c0f2f44e164a88779501e50affd1cb3193b05b7185f685cfdf00f698abb2e04')
+b2sums=('e12ba4e2f0099f17ad06532805ce9711db4722060ac96d0692f14fc4996ca99d7d9849cd7d44de3146b62b3d5a3006b1d4acb85d2927c3e896f71a9014de62d0')
+
+build() {
+ cd "flux2-${pkgver}"
+ export CGO_LDFLAGS="$LDFLAGS"
+ export CGO_CFLAGS="$CFLAGS"
+ export CGO_CXXFLAGS="$CXXFLAGS"
+ export CGO_CPPFLAGS="$CPPFLAGS"
+ export GOFLAGS="-buildmode=pie -trimpath -mod=readonly -modcacherw"
+ ./manifests/scripts/bundle.sh "${PWD}/manifests" "${PWD}/cmd/flux/manifests"
+ go build -ldflags "-linkmode=external -X main.VERSION=${pkgver}" -o ${pkgname} ./cmd/flux
+}
+
+check() {
+ cd "flux2-${pkgver}"
+ make test
+}
+
+package() {
+ cd "flux2-${pkgver}"
+ install -Dm755 ${_srcname} "${pkgdir}/usr/bin/${pkgname}"
+ install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
+
+ "${pkgdir}/usr/bin/${_srcname}" completion bash | install -Dm644 /dev/stdin "${pkgdir}/usr/share/bash-completion/completions/${_srcname}"
+ "${pkgdir}/usr/bin/${_srcname}" completion fish | install -Dm644 /dev/stdin "${pkgdir}/usr/share/fish/vendor_completions.d/${_srcname}.fish"
+ "${pkgdir}/usr/bin/${_srcname}" completion zsh | install -Dm644 /dev/stdin "${pkgdir}/usr/share/zsh/site-functions/_${_srcname}"
+}
More information about the arch-commits
mailing list