Package Details: kcadm 15.0.2-1

Git Clone URL: https://aur.archlinux.org/kcadm.git (read-only, click to copy)
Package Base: kcadm
Description: A command line Admin tool for Keycloak
Upstream URL: https://www.keycloak.org/
Licenses: GPL
Submitter: masterkorp
Maintainer: masterkorp
Last Packager: masterkorp
Votes: 1
Popularity: 0.49
First Submitted: 2020-10-07 15:24 (UTC)
Last Updated: 2022-01-05 00:51 (UTC)

Dependencies (1)

Required by (0)

Sources (2)

Latest Comments

ohlano commented on 2024-03-15 11:00 (UTC)

This package is broken unfortunately. Would be fixed with something like this:

diff --git a/PKGBUILD b/PKGBUILD
index 0d98395..c50780f 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -16,12 +16,13 @@ changelog=
 source=("https://github.com/keycloak/keycloak/releases/download/${pkgver}/keycloak-${pkgver}.tar.gz"
         "kcadm.sh")
 sha256sums=('1915e33b3789eb426fda06676e39b9ddf3a7b563e1e2381a92a02da814dad047'
-            'c181c022e595ed7410d24f999ff46e202d1b33130df5806047483ca4997f5342')
+            'cd8b09c518bf80e2b58de6038cf3c1a922a8a17874ba4cc0ce5ee05950cff521')

 package() {
   cd "keycloak-$pkgver"
   mkdir -p "${pkgdir}/var/lib/kcadm"
   mkdir -p "${pkgdir}/usr/bin/"
+  sed -i "s/%pkgver%/$pkgver/g" "${srcdir}/kcadm.sh"
   install -m755 "${srcdir}/keycloak-${pkgver}/bin/client/keycloak-admin-cli-${pkgver}.jar" \
     "${pkgdir}/var/lib/kcadm/keycloak-admin-cli-${pkgver}.jar"
   install -m755 "${srcdir}/kcadm.sh" "${pkgdir}/usr/bin/kcadm"
diff --git a/kcadm.sh b/kcadm.sh
index c41ce2a..dc81dbe 100644
--- a/kcadm.sh
+++ b/kcadm.sh
@@ -1,4 +1,4 @@
 #!/bin/sh


-java $KC_OPTS -cp /var/lib/kcadm/keycloak-admin-cli-11.0.2.jar org.keycloak.client.admin.cli.KcAdmMain "$@"
+java $KC_OPTS -cp /var/lib/kcadm/keycloak-admin-cli-%pkgver%.jar org.keycloak.client.admin.cli.KcAdmMain "$@"