1 # Maintainer: Justin Kromlinger <hashworks@archlinux.org>
3 pkgname=opensearch-neural-search-plugin
8 pkgdesc="OpenSearch Neural Search Plugin"
10 # No docs website available yet
11 url="https://github.com/opensearch-project/neural-search"
13 depends=("opensearch=${_opensearchver}")
14 makedepends=("java-environment=${_jdkver}" 'unzip')
16 "${pkgname}-${pkgver}.tar.gz::https://github.com/opensearch-project/neural-search/archive/${pkgver}.tar.gz"
18 sha256sums=('d2a827e798a414a576227e3bb64341e42ec00c35e99000651cca19023f2b9c84')
21 cd "neural-search-${pkgver}"
22 export JAVA_HOME="/usr/lib/jvm/java-${_jdkver}-openjdk"
23 export PATH="/usr/lib/jvm/java-${_jdkver}-openjdk/bin:$PATH"
24 export GRADLE_OPTS="-Dbuild.snapshot=false -Dopensearch.version=${_opensearchver}"
25 # integTest (Reaper) requires JDK 14
27 --exclude-task "integTest" \
28 --exclude-task "jacocoTestReport" \
29 --exclude-task "jacocoTestCoverageVerification"
33 install -dm755 "${pkgdir}/usr/share/opensearch/plugins/opensearch-neural-search"
34 cd "${pkgdir}/usr/share/opensearch/plugins/opensearch-neural-search"
35 unzip "${srcdir}/neural-search-${pkgver}/build/distributions/opensearch-neural-search-${pkgver}.zip"
37 install -Dm644 "${srcdir}/neural-search-${pkgver}/LICENSE" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"