1 # Maintainer: Justin Kromlinger <hashworks@archlinux.org>
3 pkgname=opensearch-reports-scheduler-plugin
8 pkgdesc="OpenSearch Reports Scheduler Plugin"
10 url="https://opensearch.org/docs/latest/dashboards/reporting"
12 depends=("opensearch=${_opensearchver}")
13 makedepends=("java-environment=${_jdkver}" 'unzip')
15 "${pkgname}-${pkgver}.tar.gz::https://github.com/opensearch-project/reporting/archive/${pkgver}.tar.gz"
17 sha256sums=('8bca5c6a8a30b3b581b0b36144837e1fc0cef911077ea22f159bd912ebe95d3f')
20 cd "reporting-${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-reports-scheduler"
30 cd "${pkgdir}/usr/share/opensearch/plugins/opensearch-reports-scheduler"
31 unzip "${srcdir}/reporting-${pkgver}/build/distributions/opensearch-reports-scheduler-${pkgver}.zip"
33 install -Dm644 "${srcdir}/reporting-${pkgver}/LICENSE" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"