[arch-commits] Commit in (4 files)

Justin Kromlinger hashworks at gemini.archlinux.org
Thu Sep 1 17:15:27 UTC 2022


    Date: Thursday, September 1, 2022 @ 17:15:27
  Author: hashworks
Revision: 1290375

Initial commit

Added:
  opensearch-ml-commons-plugin/
  opensearch-ml-commons-plugin/repos/
  opensearch-ml-commons-plugin/trunk/
  opensearch-ml-commons-plugin/trunk/PKGBUILD

----------+
 PKGBUILD |   39 +++++++++++++++++++++++++++++++++++++++
 1 file changed, 39 insertions(+)

Added: opensearch-ml-commons-plugin/trunk/PKGBUILD
===================================================================
--- opensearch-ml-commons-plugin/trunk/PKGBUILD	                        (rev 0)
+++ opensearch-ml-commons-plugin/trunk/PKGBUILD	2022-09-01 17:15:27 UTC (rev 1290375)
@@ -0,0 +1,39 @@
+# Maintainer: Justin Kromlinger <hashworks at archlinux.org>
+
+pkgname=opensearch-ml-commons-plugin
+pkgver=2.1.0.0
+pkgrel=1
+_opensearchver=2.1.0
+_jdkver=11
+pkgdesc="OpenSearch Machine Learning Commons Plugin"
+arch=('x86_64')
+url="https://opensearch.org/docs/latest/ml-commons-plugin/index/"
+license=('Apache')
+depends=("opensearch=${_opensearchver}")
+makedepends=("java-environment=${_jdkver}" 'unzip')
+source=(
+  "${pkgname}-${pkgver}.tar.gz::https://github.com/opensearch-project/ml-commons/archive/${pkgver}.tar.gz"
+)
+sha256sums=('d972418ed01d1f9e031d5b133eba86d09756673fb3cdfa7bb132624cd535f176')
+
+build() {
+  cd "ml-commons-${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}"
+  ./gradlew build \
+    --exclude-task ":opensearch-ml-algorithms:jacocoTestReport" \
+    --exclude-task ":opensearch-ml-algorithms:jacocoTestCoverageVerification" \
+    --exclude-task ":opensearch-ml-common:jacocoTestReport" \
+    --exclude-task ":opensearch-ml-common:jacocoTestCoverageVerification" \
+    --exclude-task ":opensearch-ml-client:jacocoTestReport" \
+    --exclude-task ":opensearch-ml-client:jacocoTestCoverageVerification"
+}
+
+package() {
+  install -dm755 "${pkgdir}/usr/share/opensearch/plugins/opensearch-ml"
+  cd "${pkgdir}/usr/share/opensearch/plugins/opensearch-ml"
+  unzip "${srcdir}/ml-commons-${pkgver}/plugin/build/distributions/opensearch-ml-${pkgver}.zip"
+
+  install -Dm644 "${srcdir}/ml-commons-${pkgver}/LICENSE" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
+}



More information about the arch-commits mailing list