1 # Maintainer: Justin Kromlinger <hashworks@archlinux.org>
3 pkgname=opensearch-observability-plugin
8 pkgdesc="OpenSearch Observability Plugin"
10 url="https://github.com/opensearch-project/observability"
12 depends=("opensearch=${_opensearchver}")
13 makedepends=("java-environment=${_jdkver}" 'unzip')
15 "${pkgname}-${pkgver}.tar.gz::https://github.com/opensearch-project/observability/archive/${pkgver}.tar.gz"
17 sha256sums=('69002a3c469a7d7fe67d5e126dc49d4d9a460de28c51e66e196199d9b76a1e98')
20 cd "observability-${pkgver}"
21 export JAVA_HOME="/usr/lib/jvm/java-${_jdkver}-openjdk"
22 export PATH="/usr/lib/jvm/java-${_jdkver}-openjdk/bin:$PATH"
23 export GRADLE_OPTS="-Dbuild.snapshot=false -Dopensearch.version=${_opensearchver}"
25 --exclude-task ":jacocoTestReport"
29 install -dm755 "${pkgdir}/usr/share/opensearch/plugins/opensearch-observability"
30 cd "${pkgdir}/usr/share/opensearch/plugins/opensearch-observability"
31 unzip "${srcdir}/observability-${pkgver}/build/distributions/opensearch-observability-${pkgver}.zip"
33 install -Dm644 "${srcdir}/observability-${pkgver}/LICENSE" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"