[arch-commits] Commit in opensearch-anomaly-detection-plugin/repos (2 files)
Justin Kromlinger
hashworks at gemini.archlinux.org
Fri Mar 25 23:57:40 UTC 2022
Date: Friday, March 25, 2022 @ 23:57:39
Author: hashworks
Revision: 1176747
archrelease: copy trunk to community-x86_64
Added:
opensearch-anomaly-detection-plugin/repos/community-x86_64/
opensearch-anomaly-detection-plugin/repos/community-x86_64/PKGBUILD
(from rev 1176746, opensearch-anomaly-detection-plugin/trunk/PKGBUILD)
----------+
PKGBUILD | 36 ++++++++++++++++++++++++++++++++++++
1 file changed, 36 insertions(+)
Copied: opensearch-anomaly-detection-plugin/repos/community-x86_64/PKGBUILD (from rev 1176746, opensearch-anomaly-detection-plugin/trunk/PKGBUILD)
===================================================================
--- community-x86_64/PKGBUILD (rev 0)
+++ community-x86_64/PKGBUILD 2022-03-25 23:57:39 UTC (rev 1176747)
@@ -0,0 +1,36 @@
+# Maintainer: Justin Kromlinger <hashworks at archlinux.org>
+
+pkgname=opensearch-anomaly-detection-plugin
+pkgver=1.3.0.0
+pkgrel=1
+_opensearchver=1.3.0
+_jdkver=11
+pkgdesc="OpenSearch Anomaly Detection Plugin"
+arch=('x86_64')
+url="https://opensearch.org/docs/latest/monitoring-plugins/ad"
+license=('Apache')
+depends=("opensearch=${_opensearchver}")
+makedepends=("java-environment=${_jdkver}" 'unzip')
+source=(
+ "${pkgname}-${pkgver}.tar.gz::https://github.com/opensearch-project/anomaly-detection/archive/${pkgver}.tar.gz"
+)
+sha256sums=('4fc7e3800cddad8777557095b15800533155652c530df1e2542212485458e404')
+
+build() {
+ cd "anomaly-detection-${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}"
+ # integTest (Reaper) requires JDK 14
+ ./gradlew assemble \
+ --exclude-task ":integTest" \
+ --exclude-task ":jacocoTestReport"
+}
+
+package() {
+ install -dm755 "${pkgdir}/usr/share/opensearch/plugins/opensearch-anomaly-detection"
+ cd "${pkgdir}/usr/share/opensearch/plugins/opensearch-anomaly-detection"
+ unzip "${srcdir}/anomaly-detection-${pkgver}/build/distributions/opensearch-anomaly-detection-${pkgver}.zip"
+
+ install -Dm644 "${srcdir}/anomaly-detection-${pkgver}/LICENSE.txt" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE.txt"
+}
More information about the arch-commits
mailing list