Date: Friday, March 25, 2022 @ 19:47:20 Author: hashworks Revision: 1176610
archrelease: copy trunk to community-any Added: opensearch-alerting-plugin/repos/community-any/ opensearch-alerting-plugin/repos/community-any/PKGBUILD (from rev 1176609, opensearch-alerting-plugin/trunk/PKGBUILD) ----------+ PKGBUILD | 42 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) Copied: opensearch-alerting-plugin/repos/community-any/PKGBUILD (from rev 1176609, opensearch-alerting-plugin/trunk/PKGBUILD) =================================================================== --- community-any/PKGBUILD (rev 0) +++ community-any/PKGBUILD 2022-03-25 19:47:20 UTC (rev 1176610) @@ -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=('any') +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" +}