Date: Friday, March 25, 2022 @ 23:57:49 Author: hashworks Revision: 1176750
archrelease: copy trunk to community-x86_64 Added: opensearch-asynchronous-search-plugin/repos/community-x86_64/ opensearch-asynchronous-search-plugin/repos/community-x86_64/PKGBUILD (from rev 1176749, opensearch-asynchronous-search-plugin/trunk/PKGBUILD) ----------+ PKGBUILD | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) Copied: opensearch-asynchronous-search-plugin/repos/community-x86_64/PKGBUILD (from rev 1176749, opensearch-asynchronous-search-plugin/trunk/PKGBUILD) =================================================================== --- community-x86_64/PKGBUILD (rev 0) +++ community-x86_64/PKGBUILD 2022-03-25 23:57:49 UTC (rev 1176750) @@ -0,0 +1,36 @@ +# Maintainer: Justin Kromlinger <hashwo...@archlinux.org> + +pkgname=opensearch-asynchronous-search-plugin +pkgver=1.3.0.0 +pkgrel=1 +_opensearchver=1.3.0 +_jdkver=11 +pkgdesc="OpenSearch Asynchronous Search Plugin" +arch=('x86_64') +url="https://opensearch.org/docs/latest/search-plugins/async" +license=('Apache') +depends=("opensearch=${_opensearchver}") +makedepends=("java-environment=${_jdkver}" 'unzip') +source=( + "${pkgname}-${pkgver}.tar.gz::https://github.com/opensearch-project/asynchronous-search/archive/${pkgver}.tar.gz" +) +sha256sums=('8c821a0c3fcb178f2ae3b2d47893c129e7f92b74842a455a82897497e31f6cff') + +build() { + cd "asynchronous-search-${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-asynchronous-search" + cd "${pkgdir}/usr/share/opensearch/plugins/opensearch-asynchronous-search" + unzip "${srcdir}/asynchronous-search-${pkgver}/build/distributions/opensearch-asynchronous-search-${pkgver}.zip" + + install -Dm644 "${srcdir}/asynchronous-search-${pkgver}/LICENSE" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" +}