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

Leonidas Spyropoulos artafinde at gemini.archlinux.org
Wed Jan 19 02:05:45 UTC 2022


    Date: Wednesday, January 19, 2022 @ 02:05:44
  Author: artafinde
Revision: 1110284

archrelease: copy trunk to community-testing-x86_64

Added:
  opensearch-sql-plugin/repos/community-testing-x86_64/
  opensearch-sql-plugin/repos/community-testing-x86_64/PKGBUILD
    (from rev 1110283, opensearch-sql-plugin/trunk/PKGBUILD)

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

Copied: opensearch-sql-plugin/repos/community-testing-x86_64/PKGBUILD (from rev 1110283, opensearch-sql-plugin/trunk/PKGBUILD)
===================================================================
--- community-testing-x86_64/PKGBUILD	                        (rev 0)
+++ community-testing-x86_64/PKGBUILD	2022-01-19 02:05:44 UTC (rev 1110284)
@@ -0,0 +1,39 @@
+# Maintainer: Justin Kromlinger <hashworks at archlinux.org>
+
+pkgname=opensearch-sql-plugin
+pkgver=1.2.4.0
+_opensearchver=1.2.4
+pkgrel=1
+pkgdesc="OpenSearch SQL Plugin"
+arch=('x86_64')
+url="https://opensearch.org/docs/latest/search-plugins/sql"
+license=('Apache')
+depends=('opensearch')
+makedepends=('java-environment=11' 'unzip')
+source=(
+  "${pkgname}-${pkgver}.tar.gz::https://github.com/opensearch-project/sql/archive/${pkgver}.tar.gz"
+)
+sha256sums=('b476233e93a11de5478c35c27a242fd5da2da5b2043d4fd4627bf418a75d2b86')
+
+build() {
+  cd "sql-${pkgver}"
+  export PATH=/usr/lib/jvm/default/bin:$PATH
+  export GRADLE_OPTS="-Dbuild.snapshot=false -Dopensearch.version=${_opensearchver}"
+  # :doctest requires python 3.7
+  # :sql:build and :integ-test (reaper) require JDK 14
+  ./gradlew build \
+    --exclude-task ":doctest:bootstrap" \
+    --exclude-task ":doctest:stopOpenSearch" \
+    --exclude-task ":doctest:doctest" \
+    --exclude-task ":jacocoTestReport" \
+    --exclude-task ":sql:build" \
+    --exclude-task ":integ-test:integTest"
+}
+
+package() {
+  install -dm755 "${pkgdir}/usr/share/opensearch/plugins/opensearch-sql"
+  cd "${pkgdir}/usr/share/opensearch/plugins/opensearch-sql"
+  unzip "${srcdir}/sql-${pkgver}/plugin/build/distributions/opensearch-sql-${pkgver}.zip"
+
+  install -Dm644 "${srcdir}/sql-${pkgver}/LICENSE.txt" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE.txt"
+}



More information about the arch-commits mailing list