[arch-commits] Commit in opensearch-knn-plugin/repos (2 files)
Leonidas Spyropoulos
artafinde at gemini.archlinux.org
Wed Jan 19 01:47:34 UTC 2022
Date: Wednesday, January 19, 2022 @ 01:47:34
Author: artafinde
Revision: 1110265
archrelease: copy trunk to community-testing-x86_64
Added:
opensearch-knn-plugin/repos/community-testing-x86_64/
opensearch-knn-plugin/repos/community-testing-x86_64/PKGBUILD
(from rev 1110264, opensearch-knn-plugin/trunk/PKGBUILD)
----------+
PKGBUILD | 34 ++++++++++++++++++++++++++++++++++
1 file changed, 34 insertions(+)
Copied: opensearch-knn-plugin/repos/community-testing-x86_64/PKGBUILD (from rev 1110264, opensearch-knn-plugin/trunk/PKGBUILD)
===================================================================
--- community-testing-x86_64/PKGBUILD (rev 0)
+++ community-testing-x86_64/PKGBUILD 2022-01-19 01:47:34 UTC (rev 1110265)
@@ -0,0 +1,34 @@
+# Maintainer: Justin Kromlinger <hashworks at archlinux.org>
+
+pkgname=opensearch-knn-plugin
+pkgver=1.2.4.0
+_opensearchver=1.2.4
+pkgrel=1
+pkgdesc="OpenSearch Index Management Plugin"
+arch=('x86_64')
+url="https://opensearch.org/docs/latest/search-plugins/knn"
+license=('Apache')
+depends=('opensearch')
+makedepends=('java-environment=11' 'unzip')
+source=(
+ "${pkgname}-${pkgver}.tar.gz::https://github.com/opensearch-project/k-NN/archive/${pkgver}.tar.gz"
+)
+sha256sums=('a992ea9c0667cb42e102f8036a5ddd0d1cc72bca45ee2f4f221ab8f6aebc9af6')
+
+build() {
+ cd "k-NN-${pkgver}"
+ export PATH=/usr/lib/jvm/default/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-knn"
+ cd "${pkgdir}/usr/share/opensearch/plugins/opensearch-knn"
+ unzip "${srcdir}/k-NN-${pkgver}/build/distributions/opensearch-knn-${pkgver}.zip"
+
+ install -Dm644 "${srcdir}/k-NN-${pkgver}/LICENSE.txt" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE.txt"
+}
More information about the arch-commits
mailing list