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

Jelle van der Waa jelle at archlinux.org
Mon May 25 23:30:57 UTC 2020


    Date: Monday, May 25, 2020 @ 23:30:57
  Author: jelle
Revision: 634957

initial commit

Added:
  keycloak-metrics-spi/trunk/PKGBUILD

----------+
 PKGBUILD |   30 ++++++++++++++++++++++++++++++
 1 file changed, 30 insertions(+)

Added: PKGBUILD
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2020-05-25 23:30:57 UTC (rev 634957)
@@ -0,0 +1,30 @@
+# Maintainer: Jelle van der Waa <jelle at archlinux.org>
+
+pkgname=keycloak-metrics-spi
+pkgver=2.0.0
+pkgrel=1
+pkgdesc='A Service Provider that adds a Prometheus metrics endpoint to Keycloak'
+url="https://github.com/aerogear/keycloak-metrics-spi"
+arch=('any')
+license=('Apache')
+depends=('java-runtime>=8')
+makedepends=('java-environment=8' 'gradle')
+source=($pkgname-$pkgver.tar.gz::https://github.com/aerogear/keycloak-metrics-spi/archive/${pkgver}.tar.gz)
+sha512sums=('608b33f8934c8f31b5e47ab8919debea286d66616313ce02527d15e3006c665f44dc09f90fb1ec34fb39818fe2542039c8b2c8e963ffc9814a5ae42e7be48e16')
+
+build() {
+  cd ${pkgname}-${pkgver}
+  gradle jar
+}
+
+check() {
+  cd ${pkgname}-${pkgver}
+  gradle test
+}
+
+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/
+}


More information about the arch-commits mailing list