[arch-commits] Commit in keycloak-metrics-spi/trunk (PKGBUILD)

Jelle van der Waa jelle at archlinux.org
Sat Aug 15 13:30:45 UTC 2020


    Date: Saturday, August 15, 2020 @ 13:30:45
  Author: jelle
Revision: 679691

Package latest version of keycloak-metrics-spi

Install the jar file into /usr/share/java and create a symlink in /opt/keycloak.

Modified:
  keycloak-metrics-spi/trunk/PKGBUILD

----------+
 PKGBUILD |   14 ++++++++------
 1 file changed, 8 insertions(+), 6 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2020-08-15 13:03:07 UTC (rev 679690)
+++ PKGBUILD	2020-08-15 13:30:45 UTC (rev 679691)
@@ -1,7 +1,8 @@
 # Maintainer: Jelle van der Waa <jelle at archlinux.org>
 
 pkgname=keycloak-metrics-spi
-pkgver=2.0.0
+pkgver=2.0.1
+_jarversion=2.0.2
 pkgrel=1
 pkgdesc='A Service Provider that adds a Prometheus metrics endpoint to Keycloak'
 url="https://github.com/aerogear/keycloak-metrics-spi"
@@ -8,9 +9,9 @@
 arch=('any')
 license=('Apache')
 depends=('java-runtime>=8')
-makedepends=('java-environment=8' 'gradle')
+makedepends=('java-environment=8' 'gradle' 'keycloak')
 source=($pkgname-$pkgver.tar.gz::https://github.com/aerogear/keycloak-metrics-spi/archive/${pkgver}.tar.gz)
-sha512sums=('608b33f8934c8f31b5e47ab8919debea286d66616313ce02527d15e3006c665f44dc09f90fb1ec34fb39818fe2542039c8b2c8e963ffc9814a5ae42e7be48e16')
+sha512sums=('a39e59f65e5a42f2ed7b7cf1214c7208188190e97e59b1bc66700cfc3a11ed00eb2707af279ee515c59a4f296be90871f9fa5ebc3cc1f6056b0916b65aba3bcb')
 
 build() {
   cd ${pkgname}-${pkgver}
@@ -24,7 +25,8 @@
 
 package() {
   cd ${pkgname}-${pkgver}
-  install -dm 751 ${pkgdir}/opt/keycloak/standalone
-  install -dm 755 ${pkgdir}/opt/keycloak/standalone/deployments
-  install -Dm644 build/libs/keycloak-metrics-spi-*-SNAPSHOT.jar ${pkgdir}/opt/keycloak/standalone/deployments/
+
+  install -d "${pkgdir}/opt/keycloak/standalone/deployments/"
+  install -Dm644 "build/libs/keycloak-metrics-spi-${_jarversion}-SNAPSHOT.jar" "${pkgdir}/usr/share/java/${pkgname}/keycloak-metrics-spi-${pkgver}.jar"
+  ln -s "/usr/share/java/${pkgname}/keycloak-metrics-spi-${pkgver}.jar" "${pkgdir}/opt/keycloak/standalone/deployments/keycloak-metrics-spi-${pkgver}.jar"
 }



More information about the arch-commits mailing list