Date: Thursday, September 1, 2022 @ 21:03:20
  Author: hashworks
Revision: 1290474

archrelease: copy trunk to community-x86_64

Added:
  opensearch-geospatial-plugin/repos/community-x86_64/
  opensearch-geospatial-plugin/repos/community-x86_64/PKGBUILD
    (from rev 1290473, opensearch-geospatial-plugin/trunk/PKGBUILD)

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

Copied: opensearch-geospatial-plugin/repos/community-x86_64/PKGBUILD (from rev 
1290473, opensearch-geospatial-plugin/trunk/PKGBUILD)
===================================================================
--- community-x86_64/PKGBUILD                           (rev 0)
+++ community-x86_64/PKGBUILD   2022-09-01 21:03:20 UTC (rev 1290474)
@@ -0,0 +1,35 @@
+# Maintainer: Justin Kromlinger <hashwo...@archlinux.org>
+
+pkgname=opensearch-geospatial-plugin
+pkgver=2.2.1.0
+pkgrel=1
+_opensearchver=2.2.1
+_jdkver=11
+pkgdesc="OpenSearch Geospatial Plugin"
+arch=('x86_64')
+url="https://opensearch.org/docs/latest/dashboards/geojson-regionmaps/";
+license=('Apache')
+depends=("opensearch=${_opensearchver}")
+makedepends=("java-environment=${_jdkver}" 'unzip')
+source=(
+  
"${pkgname}-${pkgver}.tar.gz::https://github.com/opensearch-project/geospatial/archive/${pkgver}.tar.gz";
+)
+sha256sums=('cb903c79fc35cff2a61581254815f7e0fc15b771247d9ae292406429ec758e1f')
+
+build() {
+  cd "geospatial-${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 ":jacocoTestReport" \
+    --exclude-task ":jacocoTestCoverageVerification"
+}
+
+package() {
+  install -dm755 "${pkgdir}/usr/share/opensearch/plugins/opensearch-geospatial"
+  cd "${pkgdir}/usr/share/opensearch/plugins/opensearch-geospatial"
+  unzip 
"${srcdir}/geospatial-${pkgver}/build/distributions/opensearch-geospatial-${pkgver}.zip"
+
+  install -Dm644 "${srcdir}/geospatial-${pkgver}/LICENSE" 
"${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
+}

Reply via email to