[arch-commits] Commit in argocd/repos/community-x86_64 (3 files)

Daurnimator daurnimator at gemini.archlinux.org
Wed Nov 3 13:15:13 UTC 2021


    Date: Wednesday, November 3, 2021 @ 13:15:13
  Author: daurnimator
Revision: 1035613

archrelease: copy trunk to community-x86_64

Added:
  argocd/repos/community-x86_64/PKGBUILD
    (from rev 1035612, argocd/trunk/PKGBUILD)
  argocd/repos/community-x86_64/argo-ui.patch
    (from rev 1035612, argocd/trunk/argo-ui.patch)
Deleted:
  argocd/repos/community-x86_64/PKGBUILD

---------------+
 PKGBUILD      |  118 +++++++++++++++++++++++++++++++-------------------------
 argo-ui.patch |   11 +++++
 2 files changed, 78 insertions(+), 51 deletions(-)

Deleted: PKGBUILD
===================================================================
--- PKGBUILD	2021-11-03 13:14:54 UTC (rev 1035612)
+++ PKGBUILD	2021-11-03 13:15:13 UTC (rev 1035613)
@@ -1,51 +0,0 @@
-# Maintainer: Daurnimator <daurnimator at archlinux.org>
-
-pkgname=argocd
-pkgver=2.1.5
-pkgrel=1
-pkgdesc="Declarative continuous deployment for Kubernetes"
-arch=('x86_64')
-url='https://argo-cd.readthedocs.io/en/stable/'
-license=('Apache')
-makedepends=('go')
-depends=('glibc')
-provides=('argocd-cli')
-replaces=('argocd-cli')
-source=("argo-cd-${pkgver}.tar.gz::https://github.com/argoproj/argo-cd/archive/v${pkgver}.tar.gz")
-sha512sums=('9e4c11d4ec26e57d36d753293c11df43dbf0f7395cec42cbd8e4e3d2131a98f6d766245adb11f9b40889911ed1a238188540303096d2f892b70b9059d54c2c38')
-
-build() {
-  cd "argo-cd-$pkgver"
-
-  export CGO_CPPFLAGS="${CPPFLAGS}"
-  export CGO_CFLAGS="${CFLAGS}"
-  export CGO_CXXFLAGS="${CXXFLAGS}"
-  export CGO_LDFLAGS="${LDFLAGS}"
-  go build -o argocd \
-    -trimpath \
-    -buildmode=pie \
-    -mod=readonly \
-    -modcacherw \
-    -ldflags "-X github.com/argoproj/argo-cd/v2/common.version=${pkgver} \
-              -X github.com/argoproj/argo-cd/v2/common.buildDate=$(date -u +'%Y-%m-%dT%H:%M:%SZ' --date=@${SOURCE_DATE_EPOCH}) \
-              -X github.com/argoproj/argo-cd/v2/common.gitTag=${pkgver} \
-              -linkmode=external \
-              -extldflags \"${LDFLAGS}\"" \
-    ./cmd
-
-  ./argocd completion bash > argocd.bash
-  ./argocd completion zsh > argocd.zsh
-}
-
-package() {
-  cd "argo-cd-$pkgver"
-
-  install -D argocd "$pkgdir/usr/bin/argocd"
-  ln -s argocd "$pkgdir/usr/bin/argocd-server"
-  ln -s argocd "$pkgdir/usr/bin/argocd-repo-server"
-  ln -s argocd "$pkgdir/usr/bin/argocd-application-controller"
-  ln -s argocd "$pkgdir/usr/bin/argocd-dex"
-
-  install -Dm644 argocd.bash "$pkgdir/usr/share/bash-completion/completions/argocd"
-  install -Dm644 argocd.zsh "$pkgdir/usr/share/zsh/site-functions/_argocd"
-}

Copied: argocd/repos/community-x86_64/PKGBUILD (from rev 1035612, argocd/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2021-11-03 13:15:13 UTC (rev 1035613)
@@ -0,0 +1,67 @@
+# Maintainer: Daurnimator <daurnimator at archlinux.org>
+
+pkgname=argocd
+pkgver=2.1.6
+pkgrel=1
+pkgdesc="Declarative continuous deployment for Kubernetes"
+arch=('x86_64')
+url='https://argo-cd.readthedocs.io/en/stable/'
+license=('Apache')
+makedepends=('go' 'yarn')
+depends=('glibc')
+provides=('argocd-cli')
+replaces=('argocd-cli')
+source=("argo-cd-${pkgver}.tar.gz::https://github.com/argoproj/argo-cd/archive/v${pkgver}.tar.gz"
+        "argo-ui-a7be8b3208549c7cf5a0b9531ca41af5614f0eda.tar.gz::https://github.com/argoproj/argo-ui/archive/a7be8b3208549c7cf5a0b9531ca41af5614f0eda.tar.gz"
+        "argo-ui.patch")
+sha512sums=('1d47dd170a4670215e7a2358661b5159fee294b99b8c9d56c353df0c15806b86f8a796a378a9607ca6862d33e134d68e990da8dd51482607f551ed8a4ebb15b1'
+            'a8f8e51875acfa26ec59aace8268538b031ae9d3dde83869e1b51d906f6be6726d5659bd2eb3587e8849d57053ef5103cfba6025743d28be1ae2771386b7d1ab'
+            '083f144dac3bc81cd803985f7259c2fa2fbc1be70e4da2a5b290eab964acd7e049f090ff736f38e7d96b607e250d9ba7a67fe7d36bb6324c3d4c448a2bc4cd8a')
+
+prepare() {
+  cd "argo-cd-$pkgver"
+
+  patch -p0 -i ../argo-ui.patch
+}
+
+build() {
+  cd "argo-cd-$pkgver"
+
+  (
+    cd ui
+    yarn install --cache-folder "${srcdir}/yarn-cache"
+    ARGO_VERSION="$pkgver" NODE_ENV='production' NODE_ONLINE_ENV='online' yarn build
+  )
+
+  export CGO_CPPFLAGS="${CPPFLAGS}"
+  export CGO_CFLAGS="${CFLAGS}"
+  export CGO_CXXFLAGS="${CXXFLAGS}"
+  export CGO_LDFLAGS="${LDFLAGS}"
+  go build -o argocd \
+    -trimpath \
+    -buildmode=pie \
+    -mod=readonly \
+    -modcacherw \
+    -ldflags "-X github.com/argoproj/argo-cd/v2/common.version=${pkgver} \
+              -X github.com/argoproj/argo-cd/v2/common.buildDate=$(date -u +'%Y-%m-%dT%H:%M:%SZ' --date=@${SOURCE_DATE_EPOCH}) \
+              -X github.com/argoproj/argo-cd/v2/common.gitTag=${pkgver} \
+              -linkmode=external \
+              -extldflags \"${LDFLAGS}\"" \
+    ./cmd
+
+  ./argocd completion bash > argocd.bash
+  ./argocd completion zsh > argocd.zsh
+}
+
+package() {
+  cd "argo-cd-$pkgver"
+
+  install -D argocd "$pkgdir/usr/bin/argocd"
+  ln -s argocd "$pkgdir/usr/bin/argocd-server"
+  ln -s argocd "$pkgdir/usr/bin/argocd-repo-server"
+  ln -s argocd "$pkgdir/usr/bin/argocd-application-controller"
+  ln -s argocd "$pkgdir/usr/bin/argocd-dex"
+
+  install -Dm644 argocd.bash "$pkgdir/usr/share/bash-completion/completions/argocd"
+  install -Dm644 argocd.zsh "$pkgdir/usr/share/zsh/site-functions/_argocd"
+}

Copied: argocd/repos/community-x86_64/argo-ui.patch (from rev 1035612, argocd/trunk/argo-ui.patch)
===================================================================
--- argo-ui.patch	                        (rev 0)
+++ argo-ui.patch	2021-11-03 13:15:13 UTC (rev 1035613)
@@ -0,0 +1,11 @@
+--- ui/package.json	2021-10-28 14:33:23.672375542 +1100
++++ ui/package.json	2021-10-28 14:33:40.578950852 +1100
+@@ -28,7 +28,7 @@
+     "@types/react-router": "^4.0.27",
+     "@types/react-router-dom": "^4.2.3",
+     "@types/superagent": "^3.5.7",
+-    "argo-ui": "git+https://github.com/argoproj/argo-ui.git",
++    "argo-ui": "file:../../argo-ui-a7be8b3208549c7cf5a0b9531ca41af5614f0eda",
+     "classnames": "^2.2.5",
+     "color": "^3.1.0",
+     "cookie": "^0.3.1",



More information about the arch-commits mailing list