[arch-commits] Commit in opensearch-ml-commons-plugin/repos (2 files)

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


    Date: Thursday, September 1, 2022 @ 17:15:33
  Author: hashworks
Revision: 1290376

archrelease: copy trunk to community-x86_64

Added:
  opensearch-ml-commons-plugin/repos/community-x86_64/
  opensearch-ml-commons-plugin/repos/community-x86_64/PKGBUILD
    (from rev 1290375, opensearch-ml-commons-plugin/trunk/PKGBUILD)

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

Copied: opensearch-ml-commons-plugin/repos/community-x86_64/PKGBUILD (from rev 1290375, opensearch-ml-commons-plugin/trunk/PKGBUILD)
===================================================================
--- community-x86_64/PKGBUILD	                        (rev 0)
+++ community-x86_64/PKGBUILD	2022-09-01 17:15:33 UTC (rev 1290376)
@@ -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