Date: Friday, March 25, 2022 @ 23:57:28 Author: hashworks Revision: 1176744
archrelease: copy trunk to community-x86_64 Added: opensearch-alerting-plugin/repos/community-x86_64/ opensearch-alerting-plugin/repos/community-x86_64/PKGBUILD (from rev 1176743, opensearch-alerting-plugin/trunk/PKGBUILD) ----------+ PKGBUILD | 42 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) Copied: opensearch-alerting-plugin/repos/community-x86_64/PKGBUILD (from rev 1176743, opensearch-alerting-plugin/trunk/PKGBUILD) =================================================================== --- community-x86_64/PKGBUILD (rev 0) +++ community-x86_64/PKGBUILD 2022-03-25 23:57:28 UTC (rev 1176744) @@ -0,0 +1,42 @@ +# Maintainer: Justin Kromlinger <hashwo...@archlinux.org> + +pkgname=opensearch-alerting-plugin +pkgver=1.3.0.0 +pkgrel=1 +_opensearchver=1.3.0 +_jdkver=11 +pkgdesc="OpenSearch Alerting Plugin" +arch=('x86_64') +url="https://docs-beta.opensearch.org/monitoring-plugins/alerting" +license=('Apache') +depends=("opensearch=${_opensearchver}") +makedepends=("java-environment=${_jdkver}" 'unzip') +source=( + "${pkgname}-${pkgver}.tar.gz::https://github.com/opensearch-project/alerting/archive/${pkgver}.tar.gz" +) +sha256sums=('a3ce691482137fe6481ce644f5552be2ef4e9f074627caa84f41977910f40c62') + +build() { + cd "alerting-${pkgver}" + export JAVA_HOME="/usr/lib/jvm/java-${_jdkver}-openjdk" + export PATH="/usr/lib/jvm/java-${_jdkver}-openjdk/bin:$PATH" + export GRADLE_OPTS="-Dbuild.snapshot=false -Dopensearch.version=${_opensearchver}" + # alertingBwcCluster and integTest (Reaper) requires JDK 14 + ./gradlew build \ + --exclude-task ":alerting:alertingBwcCluster#fullRestartClusterTask" \ + --exclude-task ":alerting:alertingBwcCluster#mixedClusterTask" \ + --exclude-task ":alerting:alertingBwcCluster#oldVersionClusterTask0" \ + --exclude-task ":alerting:alertingBwcCluster#oldVersionClusterTask1" \ + --exclude-task ":alerting:alertingBwcCluster#rollingUpgradeClusterTask" \ + --exclude-task ":alerting:alertingBwcCluster#twoThirdsUpgradedClusterTask" \ + --exclude-task ":alerting:integTest" \ + --exclude-task ":alerting:jacocoTestReport" +} + +package() { + install -dm755 "${pkgdir}/usr/share/opensearch/plugins/opensearch-alerting" + cd "${pkgdir}/usr/share/opensearch/plugins/opensearch-alerting" + unzip "${srcdir}/alerting-${pkgver}/alerting/build/distributions/opensearch-alerting-${pkgver}.zip" + + install -Dm644 "${srcdir}/alerting-${pkgver}/LICENSE.txt" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE.txt" +}