[arch-commits] Commit in opensearch-sql-plugin/repos (2 files)
Justin Kromlinger
hashworks at gemini.archlinux.org
Fri Dec 31 16:21:01 UTC 2021
Date: Friday, December 31, 2021 @ 16:21:00
Author: hashworks
Revision: 1090451
archrelease: copy trunk to community-x86_64
Added:
opensearch-sql-plugin/repos/community-x86_64/
opensearch-sql-plugin/repos/community-x86_64/PKGBUILD
(from rev 1090450, opensearch-sql-plugin/trunk/PKGBUILD)
----------+
PKGBUILD | 39 +++++++++++++++++++++++++++++++++++++++
1 file changed, 39 insertions(+)
Copied: opensearch-sql-plugin/repos/community-x86_64/PKGBUILD (from rev 1090450, opensearch-sql-plugin/trunk/PKGBUILD)
===================================================================
--- community-x86_64/PKGBUILD (rev 0)
+++ community-x86_64/PKGBUILD 2021-12-31 16:21:00 UTC (rev 1090451)
@@ -0,0 +1,39 @@
+# Maintainer: Justin Kromlinger <hashworks at archlinux.org>
+
+pkgname=opensearch-sql-plugin
+pkgver=1.2.3.0
+_opensearchver=1.2.3
+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=('8af2d103eb5f66aba8ff8173dfc16cb997ef5af405834352b1bcac81d98c5b52')
+
+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