[arch-commits] Commit in keycloak-metrics-spi/repos (2 files)

Evangelos Foutras foutrelis at gemini.archlinux.org
Thu Mar 24 16:44:24 UTC 2022


    Date: Thursday, March 24, 2022 @ 16:44:23
  Author: foutrelis
Revision: 1174826

archrelease: copy trunk to community-testing-any

Added:
  keycloak-metrics-spi/repos/community-testing-any/
  keycloak-metrics-spi/repos/community-testing-any/PKGBUILD
    (from rev 1174825, keycloak-metrics-spi/trunk/PKGBUILD)

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

Copied: keycloak-metrics-spi/repos/community-testing-any/PKGBUILD (from rev 1174825, keycloak-metrics-spi/trunk/PKGBUILD)
===================================================================
--- community-testing-any/PKGBUILD	                        (rev 0)
+++ community-testing-any/PKGBUILD	2022-03-24 16:44:23 UTC (rev 1174826)
@@ -0,0 +1,32 @@
+# Maintainer: Jelle van der Waa <jelle at archlinux.org>
+
+pkgname=keycloak-metrics-spi
+pkgver=2.5.3
+_jarversion=2.5.4
+pkgrel=2
+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' 'keycloak')
+source=($pkgname-$pkgver.tar.gz::https://github.com/aerogear/keycloak-metrics-spi/archive/${pkgver}.tar.gz)
+sha512sums=('74b76ea585ddfe9201dc355c0a401c64180a748abac600d1353453df97ab886a291cd930f372f7ec35a553b1f6498373e73056c6fe39623730f514ce9581d1fc')
+
+build() {
+  cd ${pkgname}-${pkgver}
+  gradle jar
+}
+
+check() {
+  cd ${pkgname}-${pkgver}
+  gradle test
+}
+
+package() {
+  cd ${pkgname}-${pkgver}
+
+  install -d "${pkgdir}/usr/share/java/keycloak/providers/"
+  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}/usr/share/java/keycloak/providers/keycloak-metrics-spi-${pkgver}.jar"
+}



More information about the arch-commits mailing list